Selaa lähdekoodia

handle MathArray constants in Minos object files

git-svn-id: https://svn.inf.ethz.ch/svn/lecturers/a2/trunk@7551 8c9fc860-2736-0410-a75d-ab315db34111
eth.morozova 7 vuotta sitten
vanhempi
commit
cc820120d4
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      source/FoxMinosObjectFile.Mod

+ 1 - 1
source/FoxMinosObjectFile.Mod

@@ -270,7 +270,7 @@ TYPE
 
 			PROCEDURE ConstantNeedsSection(constant: SyntaxTree.Constant): BOOLEAN;
 			BEGIN
-				RETURN constant.type.resolved IS SyntaxTree.StringType
+				RETURN (constant.type.resolved IS SyntaxTree.StringType) OR (constant.type.resolved IS SyntaxTree.MathArrayType)
 			END ConstantNeedsSection;
 
 			PROCEDURE TypeNeedsSection(type: SyntaxTree.TypeDeclaration): BOOLEAN;