diff options
author | Benoit Giannangeli <giann008@gmail.com> | 2017-05-28 14:11:18 +0200 |
---|---|---|
committer | Benoit Giannangeli <giann008@gmail.com> | 2017-05-28 14:11:18 +0200 |
commit | b667e7b8ec3f63a05172a40491c4f4ca9ec9cad0 (patch) | |
tree | f96910f166e6f831c06f1f09008e526ca27da2fc | |
parent | c64a3e7596b9e29c58a0a7cdd6574a837e0395e5 (diff) | |
download | fengari-b667e7b8ec3f63a05172a40491c4f4ca9ec9cad0.tar.gz fengari-b667e7b8ec3f63a05172a40491c4f4ca9ec9cad0.tar.bz2 fengari-b667e7b8ec3f63a05172a40491c4f4ca9ec9cad0.zip |
lua_copy should not use index2addr_
-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 90533f7..f24c4af 100644 --- a/src/lapi.js +++ b/src/lapi.js @@ -194,7 +194,7 @@ const lua_rotate = function(L, idx, n) { const lua_copy = function(L, fromidx, toidx) { let from = index2addr(L, fromidx); - L.stack[index2addr_(L, toidx)].setfrom(from); + index2addr(L, toidx).setfrom(from); }; const lua_remove = function(L, idx) { |