aboutsummaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
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 49b5195d..c7e2ad55 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.c,v 1.22 2000/06/02 17:06:42 roberto Exp roberto $ 2** $Id: ltests.c,v 1.23 2000/06/02 19:10:01 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*/
@@ -161,14 +161,14 @@ static void hash_query (void) {
161 lua_pushnumber(tsvalue(o)->u.s.hash); 161 lua_pushnumber(tsvalue(o)->u.s.hash);
162 } 162 }
163 else { 163 else {
164 const Hash *t = avalue(luaL_tablearg(2)); 164 const Hash *t = hvalue(luaL_tablearg(2));
165 lua_pushnumber(luaH_mainposition(t, o) - t->node); 165 lua_pushnumber(luaH_mainposition(t, o) - t->node);
166 } 166 }
167} 167}
168 168
169 169
170static void table_query (void) { 170static void table_query (void) {
171 const Hash *t = avalue(luaL_tablearg(1)); 171 const Hash *t = hvalue(luaL_tablearg(1));
172 int i = luaL_opt_int(2, -1); 172 int i = luaL_opt_int(2, -1);
173 if (i == -1) { 173 if (i == -1) {
174 lua_pushnumber(t->size); 174 lua_pushnumber(t->size);