]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/elaboration/expressions/EIntegerLiteral.java
Merged changes from feature/scl to master.
[simantics/platform.git] / bundles / org.simantics.scl.compiler / src / org / simantics / scl / compiler / elaboration / expressions / EIntegerLiteral.java
index 101e00b840fc67c1e37c3d7f7f32d82d5092d158..0834c49053a76813ee1cc0683d7d5098769972c7 100755 (executable)
@@ -2,6 +2,7 @@ package org.simantics.scl.compiler.elaboration.expressions;
 \r
 \r
 import org.simantics.scl.compiler.common.exceptions.InternalCompilerError;\r
+import org.simantics.scl.compiler.common.names.Names;\r
 import org.simantics.scl.compiler.constants.DoubleConstant;\r
 import org.simantics.scl.compiler.constants.FloatConstant;\r
 import org.simantics.scl.compiler.constants.IntegerConstant;\r
@@ -90,7 +91,7 @@ public class EIntegerLiteral extends SimplifiableExpression {
             if(primitive != null)\r
                 return primitive;\r
             return context.apply(\r
-                    context.getConstant(SimplificationContext.FROM_INTEGER, getType()),\r
+                    context.getConstant(Names.Prelude_fromInteger, getType()),\r
                     constraint.simplify(context),\r
                     context.literal(new IntegerConstant(Integer.parseInt(value)))\r
                     );\r