From 7b1fba69b7a887e37e57744309299d134e76e06e Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 7 Nov 2016 10:38:35 -0200 Subject: using 'lastfree == NULL' to signal that table is using the dummy node for its hash part + new macro 'allocsizenode' --- ltests.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ltests.c') diff --git a/ltests.c b/ltests.c index 98fdf223..e796fac3 100644 --- a/ltests.c +++ b/ltests.c @@ -1,5 +1,5 @@ /* -** $Id: ltests.c,v 2.208 2015/09/08 16:55:43 roberto Exp roberto $ +** $Id: ltests.c,v 2.209 2015/10/12 16:38:19 roberto Exp roberto $ ** Internal Module for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -687,8 +687,8 @@ static int table_query (lua_State *L) { t = hvalue(obj_at(L, 1)); if (i == -1) { lua_pushinteger(L, t->sizearray); - lua_pushinteger(L, luaH_isdummy(t->node) ? 0 : sizenode(t)); - lua_pushinteger(L, t->lastfree - t->node); + lua_pushinteger(L, allocsizenode(t)); + lua_pushinteger(L, isdummy(t) ? 0 : t->lastfree - t->node); } else if ((unsigned int)i < t->sizearray) { lua_pushinteger(L, i); -- cgit v1.2.3-55-g6feb