summaryrefslogtreecommitdiff
path: root/src/lapi.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-05-28 14:11:18 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-05-28 14:11:18 +0200
commitb667e7b8ec3f63a05172a40491c4f4ca9ec9cad0 (patch)
treef96910f166e6f831c06f1f09008e526ca27da2fc /src/lapi.js
parentc64a3e7596b9e29c58a0a7cdd6574a837e0395e5 (diff)
downloadfengari-b667e7b8ec3f63a05172a40491c4f4ca9ec9cad0.tar.gz
fengari-b667e7b8ec3f63a05172a40491c4f4ca9ec9cad0.tar.bz2
fengari-b667e7b8ec3f63a05172a40491c4f4ca9ec9cad0.zip
lua_copy should not use index2addr_
Diffstat (limited to 'src/lapi.js')
-rw-r--r--src/lapi.js2
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) {