Make lua_concat() work from C hook with partial frame.

This commit is contained in:
Mike Pall
2012-04-12 12:02:38 +02:00
parent 3ed5172fe4
commit 68ca796d28
2 changed files with 7 additions and 2 deletions

View File

@@ -709,7 +709,7 @@ LUA_API void lua_concat(lua_State *L, int n)
if (n >= 2) {
n--;
do {
TValue *top = lj_meta_cat(L, L->top-1, n);
TValue *top = lj_meta_cat(L, L->top-1, -n);
if (top == NULL) {
L->top -= n;
break;