FFI: Fix compiled ffi.string() semantics.
This commit is contained in:
@@ -713,7 +713,7 @@ LUA_API void lua_concat(lua_State *L, int n)
|
||||
copyTV(L, L->top-1, L->top);
|
||||
} while (--n > 0);
|
||||
} else if (n == 0) { /* Push empty string. */
|
||||
setstrV(L, L->top, lj_str_new(L, "", 0));
|
||||
setstrV(L, L->top, &G(L)->strempty);
|
||||
incr_top(L);
|
||||
}
|
||||
/* else n == 1: nothing to do. */
|
||||
|
||||
Reference in New Issue
Block a user