aboutsummaryrefslogtreecommitdiff
path: root/src/parseTools.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-04-01 18:14:46 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-04-01 18:14:46 -0700
commit609bf2ea07190fd87a875ce5fef7016ee2a0ee9b (patch)
tree2d2d7da9bfcad051fe2e1ed0d47eac8f9ed855bd /src/parseTools.js
parenta08fe05250cd2ebd89dd832321d7d2f6c1711b9a (diff)
proper precise unsigned i64 modulo, and passing tests for i64 division and modulo
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 a37a7c54..c8543963 100644
--- a/src/parseTools.js
+++ b/src/parseTools.js
@@ -1741,7 +1741,7 @@ function processMathop(item) {
}
case 'urem': case 'srem': {
if (PRECISE_I64_MATH) {
- return i64PreciseOp('modulo');
+ return i64PreciseOp('modulo', op[0] === 'u');
} else {
warnI64_1();
return finish(splitI64(mergeI64(idents[0], op[0] === 'u') + '%' + mergeI64(idents[1], op[0] === 'u')));