From 8047b2d03eaaeee44871a11f8d3a3135f2639b1a Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 1 Nov 2022 15:42:08 -0300 Subject: Tables have a 'lastfree' information only when needed Only tables with some minimum number of entries in their hash part have a 'lastfree' field, kept in a header before the node vector. --- ltests.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ltests.c') diff --git a/ltests.c b/ltests.c index 4a0a6af1..1caed04c 100644 --- a/ltests.c +++ b/ltests.c @@ -999,9 +999,8 @@ static int table_query (lua_State *L) { if (i == -1) { lua_pushinteger(L, asize); lua_pushinteger(L, allocsizenode(t)); - lua_pushinteger(L, isdummy(t) ? 0 : t->lastfree - t->node); lua_pushinteger(L, t->alimit); - return 4; + return 3; } else if ((unsigned int)i < asize) { lua_pushinteger(L, i); -- cgit v1.2.3-55-g6feb