aboutsummaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
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 }