'objsize' returns 'l_mem'

Sums of size_t may not fit in a size_t.
This commit is contained in:
Roberto Ierusalimschy
2024-11-15 12:04:53 -03:00
parent d4247befa1
commit a4762b6ffe
7 changed files with 40 additions and 25 deletions

View File

@@ -163,7 +163,7 @@ LUAI_FUNC Table *luaH_new (lua_State *L);
LUAI_FUNC void luaH_resize (lua_State *L, Table *t, unsigned nasize,
unsigned nhsize);
LUAI_FUNC void luaH_resizearray (lua_State *L, Table *t, unsigned nasize);
LUAI_FUNC size_t luaH_size (Table *t);
LUAI_FUNC lu_mem luaH_size (Table *t);
LUAI_FUNC void luaH_free (lua_State *L, Table *t);
LUAI_FUNC int luaH_next (lua_State *L, Table *t, StkId key);
LUAI_FUNC lua_Unsigned luaH_getn (Table *t);