From 5cad2321a97a7b6a6ceb0a07135bffda647e3587 Mon Sep 17 00:00:00 2001 From: Jonas Maebe Date: Wed, 18 Oct 2006 18:13:41 +0000 Subject: [PATCH] * allow assigning to loop control vars in macpas mode git-svn-id: trunk@4956 - --- compiler/pstatmnt.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/pstatmnt.pas b/compiler/pstatmnt.pas index 657397814c..11887400cd 100644 --- a/compiler/pstatmnt.pas +++ b/compiler/pstatmnt.pas @@ -370,8 +370,8 @@ implementation (vo_is_thread_var in tabstractvarsym(tloadnode(hp).symtableentry).varoptions)) ) then begin - { Assigning for-loop variable is only allowed in tp7 } - if not(m_tp7 in aktmodeswitches) then + { Assigning for-loop variable is only allowed in tp7 and macpas } + if ([m_tp7,m_mac] * aktmodeswitches = []) then begin if not assigned(loopvarsym) then loopvarsym:=tabstractvarsym(tloadnode(hp).symtableentry);