wrong type being assigned (not detected because of obj2gco macro)

This commit is contained in:
Roberto Ierusalimschy 2010-05-11 17:48:36 -03:00
parent 0567221848
commit de0f51a02c

View File

@ -1,5 +1,5 @@
/*
** $Id: ltests.c,v 2.104 2010/05/07 18:23:17 roberto Exp roberto $
** $Id: ltests.c,v 2.105 2010/05/10 18:24:36 roberto Exp roberto $
** Internal Module for Debugging of the Lua Implementation
** See Copyright Notice in lua.h
*/
@ -714,7 +714,7 @@ static int string_query (lua_State *L) {
GCObject *ts;
int n = 0;
for (ts = tb->hash[s]; ts; ts = gch(ts)->next) {
setsvalue2s(L, L->top, gco2ts(ts));
setsvalue2s(L, L->top, rawgco2ts(ts));
incr_top(L);
n++;
}