diff options
-rw-r--r-- | AUTHORS | 1 | ||||
-rw-r--r-- | src/jsifier.js | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -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; |