summaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-08-18 13:12:18 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-08-18 13:12:18 -0300
commitcaceeab750ed80e94f8ec763248ae04cd90fefb5 (patch)
tree2f5b0e8d457dd29d5525d924e6bd4d2328292d84 /ltests.c
parent3991312b94c0862577a5998fcf9ea93c81c6933c (diff)
downloadlua-caceeab750ed80e94f8ec763248ae04cd90fefb5.tar.gz
lua-caceeab750ed80e94f8ec763248ae04cd90fefb5.tar.bz2
lua-caceeab750ed80e94f8ec763248ae04cd90fefb5.zip
'next' field for tables changed from pointer to integer (for better
alignment on 64-bit machines)
Diffstat (limited to 'ltests.c')
-rw-r--r--ltests.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ltests.c b/ltests.c
index e99b2b61..1fb01cfd 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.c,v 2.142 2013/08/16 18:55:49 roberto Exp roberto $ 2** $Id: ltests.c,v 2.143 2013/08/16 19:02:31 roberto Exp roberto $
3** Internal Module for Debugging of the Lua Implementation 3** Internal Module for Debugging of the Lua Implementation
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -718,8 +718,8 @@ static int table_query (lua_State *L) {
718 else 718 else
719 lua_pushliteral(L, "<undef>"); 719 lua_pushliteral(L, "<undef>");
720 pushobject(L, gval(gnode(t, i))); 720 pushobject(L, gval(gnode(t, i)));
721 if (gnext(&t->node[i])) 721 if (gnext(&t->node[i]) != 0)
722 lua_pushinteger(L, gnext(&t->node[i]) - t->node); 722 lua_pushinteger(L, gnext(&t->node[i]));
723 else 723 else
724 lua_pushnil(L); 724 lua_pushnil(L);
725 } 725 }