소스 검색

* allow assigning to loop control vars in macpas mode

git-svn-id: trunk@4956 -
Jonas Maebe 19 년 전
부모
커밋
5cad2321a9
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      compiler/pstatmnt.pas

+ 2 - 2
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);