diff options
author | Mike Pall <mike> | 2022-08-10 19:27:53 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2022-08-10 19:27:53 +0200 |
commit | 633f265f67f322cbe2c5fd11d3e46d968ac220f7 (patch) | |
tree | ba5e9e3875e6b456eb5c872061647a2c4db938f8 /src | |
parent | e61a1f961ac3f063a5d80ca9b7b7e263810abf74 (diff) | |
download | luajit-633f265f67f322cbe2c5fd11d3e46d968ac220f7.tar.gz luajit-633f265f67f322cbe2c5fd11d3e46d968ac220f7.tar.bz2 luajit-633f265f67f322cbe2c5fd11d3e46d968ac220f7.zip |
LJ_GC64: Fix lua_concat().
Reported by Mathias Westerdahl.
Diffstat (limited to 'src')
-rw-r--r-- | src/lj_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_api.c b/src/lj_api.c index d869ebf8..e6b67478 100644 --- a/src/lj_api.c +++ b/src/lj_api.c | |||
@@ -779,7 +779,7 @@ LUA_API void lua_concat(lua_State *L, int n) | |||
779 | L->top -= n; | 779 | L->top -= n; |
780 | break; | 780 | break; |
781 | } | 781 | } |
782 | n -= (int)(L->top - top); | 782 | n -= (int)(L->top - (top - 2*LJ_FR2)); |
783 | L->top = top+2; | 783 | L->top = top+2; |
784 | lj_vm_call(L, top, 1+1); | 784 | lj_vm_call(L, top, 1+1); |
785 | L->top -= 1+LJ_FR2; | 785 | L->top -= 1+LJ_FR2; |