aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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) {