diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-02-10 18:44:21 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-02-11 14:54:56 -0800 |
commit | 19bdc8611ec257549949da52c24e066c94140ba3 (patch) | |
tree | f39c095931e547cea458a8fab679eea6728575f6 /src/parseTools.js | |
parent | 0aa2878b1cd41601e4a3e3231cf7b1745a7cfb32 (diff) |
fix runtime (nonconstant) bitshifts
Diffstat (limited to 'src/parseTools.js')
-rw-r--r-- | src/parseTools.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index e1072308..70a6ba5a 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -1600,7 +1600,7 @@ function processMathop(item) { case 'ashr': case 'lshr': { if (!isNumber(ident2)) { - return 'Runtime.bitshift64(' + ident1 + ',"' + op + '",' + stripCorrections(ident2) + '[0]|0)'; + return 'Runtime.bitshift64(' + ident1 + '[0], ' + ident1 + '[1],"' + op + '",' + stripCorrections(ident2) + '[0]|0)'; } bits = parseInt(ident2); var ander = Math.pow(2, bits)-1; |