diff options
Diffstat (limited to 'ltests.c')
-rw-r--r-- | ltests.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 | } |