From a4762b6ffe74f5878882ef238d37bfa92d90e418 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 15 Nov 2024 12:04:53 -0300 Subject: 'objsize' returns 'l_mem' Sums of size_t may not fit in a size_t. --- ltable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ltable.h') diff --git a/ltable.h b/ltable.h index c352da38..17e4fb4a 100644 --- a/ltable.h +++ b/ltable.h @@ -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); -- cgit v1.2.3-55-g6feb