aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lapi.c b/lapi.c
index 1331d4c4..65781254 100644
--- a/lapi.c
+++ b/lapi.c
@@ -654,7 +654,7 @@ LUA_API void lua_concat (lua_State *L, int n) {
654 lua_lock(L); 654 lua_lock(L);
655 api_checknelems(L, n); 655 api_checknelems(L, n);
656 if (n >= 2) { 656 if (n >= 2) {
657 luaV_strconc(L, n, L->top); 657 luaV_strconc(L, n, L->top - L->ci->base - 1);
658 L->top -= (n-1); 658 L->top -= (n-1);
659 luaC_checkGC(L); 659 luaC_checkGC(L);
660 } 660 }