From caceeab750ed80e94f8ec763248ae04cd90fefb5 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Sun, 18 Aug 2013 13:12:18 -0300 Subject: 'next' field for tables changed from pointer to integer (for better alignment on 64-bit machines) --- ltests.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ltests.c') diff --git a/ltests.c b/ltests.c index e99b2b61..1fb01cfd 100644 --- a/ltests.c +++ b/ltests.c @@ -1,5 +1,5 @@ /* -** $Id: ltests.c,v 2.142 2013/08/16 18:55:49 roberto Exp roberto $ +** $Id: ltests.c,v 2.143 2013/08/16 19:02:31 roberto Exp roberto $ ** Internal Module for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -718,8 +718,8 @@ static int table_query (lua_State *L) { else lua_pushliteral(L, ""); pushobject(L, gval(gnode(t, i))); - if (gnext(&t->node[i])) - lua_pushinteger(L, gnext(&t->node[i]) - t->node); + if (gnext(&t->node[i]) != 0) + lua_pushinteger(L, gnext(&t->node[i])); else lua_pushnil(L); } -- cgit v1.2.3-55-g6feb