diff options
author | sanine <sanine.not@pm.me> | 2021-08-28 21:47:34 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2021-08-28 21:47:34 -0500 |
commit | 44af9bfec8f7d50b35a952e6e50a251e23c7e22c (patch) | |
tree | a8bf75c6dd6332e53320876f1f7c01fe5cadf699 | |
parent | 0b3b7357ca64a4a4b94f586c3da4308f9bda76d3 (diff) |
create empty table in hs_create_table_()
-rw-r--r-- | src/hs_create_table.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |