aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--AUTHORS1
-rw-r--r--src/jsifier.js4
2 files changed, 3 insertions, 2 deletions
diff --git a/AUTHORS b/AUTHORS
index f62c2fe8..6add82dd 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -8,3 +8,4 @@ under the licensing terms detailed in LICENSE.
* Jeff Terrace <jterrace@gmail.com>
* Benoit Tremblay <benoit.tremblay@frimastudio.com>
* Andreas Bergmeier <andreas.bergmeier@gmx.net>
+* Ben Schwartz <bens@alum.mit.edu>
diff --git a/src/jsifier.js b/src/jsifier.js
index 4c233481..d7db2f7c 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -147,11 +147,11 @@ function JSify(data, functionsOnly, givenFunctions, givenGlobalVariables) {
var currValue = flatten(values[i]);
if (I64_MODE == 1 && typeData.fields[i] == 'i64') {
// 'flatten' out the 64-bit value into two 32-bit halves
- ret[index++] = currValue + '>>>0';
+ ret[index++] = currValue>>>0;
ret[index++] = 0;
ret[index++] = 0;
ret[index++] = 0;
- ret[index++] = 'Math.floor(' + currValue + '/4294967296)';
+ ret[index++] = Math.floor(currValue/4294967296);
ret[index++] = 0;
ret[index++] = 0;
ret[index++] = 0;