Browse Source

Fixed comment.

woollybah 9 năm trước cách đây
mục cha
commit
c03f751fa7
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      stmt.bmx

+ 1 - 1
stmt.bmx

@@ -508,7 +508,7 @@ Type TForStmt Extends TLoopStmt
 
 		expr=expr.Semant()
 
-		' for functions and index access, use a new local variable
+		' for anything other than a const value, use a new local variable
 		If Not TConstExpr(TBinaryCompareExpr(expr).rhs) Then
 			Local tmp:TLocalDecl=New TLocalDecl.Create( "", TBinaryCompareExpr(expr).rhs.exprType,TBinaryCompareExpr(expr).rhs,, True )
 			tmp.Semant()