Skip to content

Commit 1ea684f

Browse files
committed
hotfix operator type
1 parent 13a046f commit 1ea684f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/pt/up/fe/comp2023/ollir/Optimization.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ private Void dealWithComparison(JmmNode jmmNode, Void unused) {
297297
String right = rightSon.get("valueOl");
298298
temp = "t" + tempVarId++ + ".bool";
299299

300-
code += temp + ":=.bool " + left + " " + jmmNode.get("op") + ".i32 " + right;
300+
code += temp + ":=.bool " + left + " " + jmmNode.get("op") + ".bool " + right;
301301
if (condition.isEmpty() || cycle.isEmpty())
302302
code += ";\n";
303303
jmmNode.put("valueOl", temp);

0 commit comments

Comments
 (0)