Skip to content

Commit

Permalink
proper type for array
Browse files Browse the repository at this point in the history
  • Loading branch information
4z0t authored and Garanas committed Nov 11, 2024
1 parent bac292a commit 1c57c00
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions section/GetTableSize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,12 @@ int lua_unpack(lua_State *l)
return n_stack;
}

int RegTableFuncsDesc[] = {"getsize2", &lua_tablesize, "empty2", &lua_tableempty,
"getn2", 0x00927C20, "clone", &TableClone,
"unpack", &lua_unpack, 0, 0};
luaL_reg RegTableFuncsDesc[] = {{"getsize2", &lua_tablesize},
{"empty2", &lua_tableempty},
{"getn2", (lua_CFunction)0x00927C20},
{"clone", &TableClone},
{"unpack", &lua_unpack},
{nullptr, nullptr}};

void RegTableFuncs()
{
Expand Down

0 comments on commit 1c57c00

Please sign in to comment.