aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/parseTools.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parseTools.js b/src/parseTools.js
index 8d6115b8..32bf70e9 100644
--- a/src/parseTools.js
+++ b/src/parseTools.js
@@ -1038,7 +1038,7 @@ function asmMultiplyI32(a, b) {
if (USE_MATH_IMUL) {
return 'Math.imul(' + a + ',' + b + ')';
}
- return '(~~(+' + a + ' * +' + b + '))';
+ return '(~~(+((' + a + ')|0) * +((' + b + ')|0)))';
}
function makeGetTempDouble(i, type) { // get an aliased part of the tempDouble temporary storage