From 44af9bfec8f7d50b35a952e6e50a251e23c7e22c Mon Sep 17 00:00:00 2001 From: sanine Date: Sat, 28 Aug 2021 21:47:34 -0500 Subject: create empty table in hs_create_table_() --- src/hs_create_table.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/hs_create_table.c b/src/hs_create_table.c index c1770e9..5441dae 100644 --- a/src/hs_create_table.c +++ b/src/hs_create_table.c @@ -7,5 +7,6 @@ int hs_create_table_(lua_State *L, L=L; n_elements = n_elements; elements = elements; - return 0; + lua_newtable(L); + return lua_gettop(L); } -- cgit v1.2.1