aboutsummaryrefslogtreecommitdiff
path: root/src/parseTools.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/parseTools.js')
-rw-r--r--src/parseTools.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parseTools.js b/src/parseTools.js
index c02bc62a..e3b7ed3c 100644
--- a/src/parseTools.js
+++ b/src/parseTools.js
@@ -1793,7 +1793,7 @@ function finalizeLLVMParameter(param, noIndexizeFunctions) {
function makeComparison(a, b, type) {
if (!isIllegalType(type)) {
- return a + ' == ' + b;
+ return asmCoercion(a, type) + ' == ' + asmCoercion(b, type);
} else {
assert(type == 'i64');
return asmCoercion(a + '$0', 'i32') + ' == ' + asmCoercion(b + '$0', 'i32') + ' & ' +