Explorar o código

Patched push order of array dimensions

git-svn-id: https://svn.inf.ethz.ch/svn/lecturers/a2/trunk@7145 8c9fc860-2736-0410-a75d-ab315db34111
felixf %!s(int64=8) %!d(string=hai) anos
pai
achega
2f4233d761
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      source/FoxIntermediateBackend.Mod

+ 1 - 1
source/FoxIntermediateBackend.Mod

@@ -8220,7 +8220,7 @@ TYPE
 						END;
 
 						
-						FOR i := firstPar TO x.parameters.Length()-1 DO
+						FOR i := x.parameters.Length()-1 TO firstPar BY -1 DO
 							IF ~isTensor THEN
 								type := type(SyntaxTree.MathArrayType).arrayBase.resolved;
 							END;