summaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-06-08 15:27:13 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-06-08 15:27:13 -0300
commit8ca9534d048782af13141874e0d2fec0d0f806af (patch)
treed58ab47be12ff9d5910ffaf6222cf94bd0dff0f6 /ltests.c
parent8bcf6228765e56be19feb90c8805cc2fb2223188 (diff)
downloadlua-github-8ca9534d048782af13141874e0d2fec0d0f806af.tar.gz
access to `values' in TObject always through macros
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 @@
/*
-** $Id: ltests.c,v 1.22 2000/06/02 17:06:42 roberto Exp roberto $
+** $Id: ltests.c,v 1.23 2000/06/02 19:10:01 roberto Exp roberto $
** Internal Module for Debugging of the Lua Implementation
** See Copyright Notice in lua.h
*/
@@ -161,14 +161,14 @@ static void hash_query (void) {
lua_pushnumber(tsvalue(o)->u.s.hash);
}
else {
- const Hash *t = avalue(luaL_tablearg(2));
+ const Hash *t = hvalue(luaL_tablearg(2));
lua_pushnumber(luaH_mainposition(t, o) - t->node);
}
}
static void table_query (void) {
- const Hash *t = avalue(luaL_tablearg(1));
+ const Hash *t = hvalue(luaL_tablearg(1));
int i = luaL_opt_int(2, -1);
if (i == -1) {
lua_pushnumber(t->size);