From b667e7b8ec3f63a05172a40491c4f4ca9ec9cad0 Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Sun, 28 May 2017 14:11:18 +0200 Subject: lua_copy should not use index2addr_ --- src/lapi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.2.3-70-g09d2