Explorar o código

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 %!s(int64=7) %!d(string=hai) anos
pai
achega
cc820120d4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;