diff options
author | daurnimator <quae@daurnimator.com> | 2017-05-21 19:01:49 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-05-21 19:12:52 +1000 |
commit | c09ab00b85677881f0ca0424b27ad14521e4a770 (patch) | |
tree | 6eff3217b3ecf9c75d74de3e9e4751020e555619 /src | |
parent | bdaa2a67b491bfc1d9521778cb3d13d386f97f93 (diff) | |
download | fengari-c09ab00b85677881f0ca0424b27ad14521e4a770.tar.gz fengari-c09ab00b85677881f0ca0424b27ad14521e4a770.tar.bz2 fengari-c09ab00b85677881f0ca0424b27ad14521e4a770.zip |
src/lvm.js: integer unary minus need to be bitwise or-d
Diffstat (limited to 'src')
-rw-r--r-- | src/lvm.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -376,7 +376,7 @@ const luaV_execute = function(L) { let numberop = tonumber(op); if (op.ttisinteger()) { - L.stack[ra] = new lobject.TValue(CT.LUA_TNUMINT, -op.value); + L.stack[ra] = new lobject.TValue(CT.LUA_TNUMINT, (-op.value)|0); } else if (numberop !== false) { L.stack[ra] = new lobject.TValue(CT.LUA_TNUMFLT, -numberop); } else { |