aboutsummaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-01-18 13:59:09 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-01-18 13:59:09 -0200
commitf2c451d7455aad3496f32dfa2bfca7f7e8b5376d (patch)
tree38e30f839516ff5b6178351750b5e3256f4dd98e /ltests.c
parent619edfd9e4c210bdfcfbf1e911d1760c53c4293f (diff)
downloadlua-f2c451d7455aad3496f32dfa2bfca7f7e8b5376d.tar.gz
lua-f2c451d7455aad3496f32dfa2bfca7f7e8b5376d.tar.bz2
lua-f2c451d7455aad3496f32dfa2bfca7f7e8b5376d.zip
all accesses to TObjects done through macros
Diffstat (limited to 'ltests.c')
-rw-r--r--ltests.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ltests.c b/ltests.c
index 97c63dfb..b767e2ca 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.c,v 1.55 2000/12/28 12:55:41 roberto Exp roberto $ 2** $Id: ltests.c,v 1.56 2001/01/15 16:13:24 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*/
@@ -226,8 +226,7 @@ static int string_query (lua_State *L) {
226 TString *ts; 226 TString *ts;
227 int n = 0; 227 int n = 0;
228 for (ts = tb->hash[s]; ts; ts = ts->nexthash) { 228 for (ts = tb->hash[s]; ts; ts = ts->nexthash) {
229 ttype(L->top) = LUA_TSTRING; 229 setsvalue(L->top, ts);
230 tsvalue(L->top) = ts;
231 incr_top; 230 incr_top;
232 n++; 231 n++;
233 } 232 }