aboutsummaryrefslogtreecommitdiff
path: root/src/jsifier.js
diff options
context:
space:
mode:
authorAlon Zakai <azakai@mozilla.com>2010-12-04 20:26:28 -0800
committerAlon Zakai <azakai@mozilla.com>2010-12-04 20:26:28 -0800
commit7e332b116c930f1bd12a4da10ac1cf4ab21ab024 (patch)
tree346b07da2d4bc592a3ae904db3e9069ab134bc27 /src/jsifier.js
parent60d8f78f3fc22a9ea96ab09e527760149569d3e2 (diff)
fix for bitshifts
Diffstat (limited to 'src/jsifier.js')
-rw-r--r--src/jsifier.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/jsifier.js b/src/jsifier.js
index b504cb9d..b5ac1262 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -717,8 +717,9 @@ function JSify(data, functionsOnly, givenTypes, givenFunctions) {
case 'or': return ident1 + ' | ' + ident2;
case 'and': return ident1 + ' & ' + ident2;
case 'xor': return ident1 + ' ^ ' + ident2;
- case 'shl': case 'ashl': case 'lshl': return ident1 + ' << ' + ident2;
- case 'shr': case 'ashr': case 'lshr': return ident1 + ' >> ' + ident2;
+ case 'shl': return ident1 + ' << ' + ident2;
+ case 'ashr': return ident1 + ' >> ' + ident2;
+ case 'lshr': return ident1 + ' >>> ' + ident2;
case 'fadd': return ident1 + ' + ' + ident2;
case 'fsub': return ident1 + ' - ' + ident2;
case 'fdiv': return ident1 + ' / ' + ident2;