aboutsummaryrefslogtreecommitdiff
path: root/src/lj_api.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lj_api.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lj_api.c b/src/lj_api.c
index 8aaafdc5..05fb41a7 100644
--- a/src/lj_api.c
+++ b/src/lj_api.c
@@ -640,10 +640,8 @@ LUA_API void lua_pushlightuserdata(lua_State *L, void *p)
640 640
641LUA_API void lua_createtable(lua_State *L, int narray, int nrec) 641LUA_API void lua_createtable(lua_State *L, int narray, int nrec)
642{ 642{
643 GCtab *t;
644 lj_gc_check(L); 643 lj_gc_check(L);
645 t = lj_tab_new(L, (uint32_t)(narray > 0 ? narray+1 : 0), hsize2hbits(nrec)); 644 settabV(L, L->top, lj_tab_new_ah(L, narray, nrec));
646 settabV(L, L->top, t);
647 incr_top(L); 645 incr_top(L);
648} 646}
649 647