From d367c8c3ce3f0c0665a402dc9eadde29aade7b61 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 9 Mar 2017 01:20:59 +0100 Subject: util-src: Specify size of various tables to be allocated --- util-src/table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util-src/table.c') diff --git a/util-src/table.c b/util-src/table.c index f1cd9e12..9a9553fc 100644 --- a/util-src/table.c +++ b/util-src/table.c @@ -24,7 +24,7 @@ int luaopen_util_table(lua_State *L) { #if (LUA_VERSION_NUM > 501) luaL_checkversion(L); #endif - lua_newtable(L); + lua_createtable(L, 0, 2); lua_pushcfunction(L, Lcreate_table); lua_setfield(L, -2, "create"); lua_pushcfunction(L, Lpack); -- cgit v1.2.3