From: Mike Pall Date: Wed, 10 Aug 2022 17:27:53 +0000 (+0200) Subject: LJ_GC64: Fix lua_concat(). X-Git-Tag: v2.1.ROLLING~49 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=633f265f67f322cbe2c5fd11d3e46d968ac220f7;p=thirdparty%2FLuaJIT.git LJ_GC64: Fix lua_concat(). Reported by Mathias Westerdahl. --- 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) L->top -= n; break; } - n -= (int)(L->top - top); + n -= (int)(L->top - (top - 2*LJ_FR2)); L->top = top+2; lj_vm_call(L, top, 1+1); L->top -= 1+LJ_FR2;