diff options
author | Benoit Giannangeli <giann008@gmail.com> | 2017-05-27 09:08:31 +0200 |
---|---|---|
committer | Benoit Giannangeli <giann008@gmail.com> | 2017-05-27 09:08:31 +0200 |
commit | 3e150cbf82243134db25b71a7d90e2a31f8f04e7 (patch) | |
tree | b9e8cfe7c640c9088caa49c4c254873486050a74 /src/lapi.js | |
parent | f2698d4c4d5dd02888a493e3b6919e657c02b49a (diff) | |
download | fengari-3e150cbf82243134db25b71a7d90e2a31f8f04e7.tar.gz fengari-3e150cbf82243134db25b71a7d90e2a31f8f04e7.tar.bz2 fengari-3e150cbf82243134db25b71a7d90e2a31f8f04e7.zip |
luaT_trybinTM in luaO_arith needs a stack index
Diffstat (limited to 'src/lapi.js')
-rw-r--r-- | src/lapi.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lapi.js b/src/lapi.js index 92e1612..27d692a 100644 --- a/src/lapi.js +++ b/src/lapi.js @@ -895,7 +895,7 @@ const lua_arith = function(L, op) { L.stack[L.top++] = L.stack[L.top - 1]; } /* first operand at top - 2, second at top - 1; result go to top - 2 */ - lobject.luaO_arith(L, op, L.stack[L.top - 2], L.stack[L.top - 1], L.stack[L.top - 2]); + lobject.luaO_arith(L, op, L.stack[L.top - 2], L.stack[L.top - 1], L.top - 2); L.top--; /* remove second operand */ }; |