summaryrefslogtreecommitdiff
path: root/src/lobject.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-05-20 17:58:00 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-05-20 17:58:00 +0200
commit1b55793f38dcf088c2ab4b5cc9d7e75eb70ed7f7 (patch)
treef926a84a9a9e66ed103363a0c72a017b86061863 /src/lobject.js
parent4a8b0d23a798b03c5fa2edd61313b0747b1068a0 (diff)
downloadfengari-1b55793f38dcf088c2ab4b5cc9d7e75eb70ed7f7.tar.gz
fengari-1b55793f38dcf088c2ab4b5cc9d7e75eb70ed7f7.tar.bz2
fengari-1b55793f38dcf088c2ab4b5cc9d7e75eb70ed7f7.zip
Use >>> instead of >>
Diffstat (limited to 'src/lobject.js')
-rw-r--r--src/lobject.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lobject.js b/src/lobject.js
index 3ec04f6..05b1fad 100644
--- a/src/lobject.js
+++ b/src/lobject.js
@@ -528,7 +528,7 @@ const intarith = function(L, op, v1, v2) {
case defs.LUA_OPBOR: return (v1 | v2);
case defs.LUA_OPBXOR: return (v1 ^ v2);
case defs.LUA_OPSHL: return (v1 << v2);
- case defs.LUA_OPSHR: return (v1 >> v2);
+ case defs.LUA_OPSHR: return (v1 >>> v2)|0;
case defs.LUA_OPUNM: return (0 - v1)|0;
case defs.LUA_OPBNOT: return (~0 ^ v1);
default: assert(0);