mirror of
https://github.com/lua/lua.git
synced 2025-02-04 06:13:04 +08:00
wrong type being assigned (not detected because of obj2gco macro)
This commit is contained in:
parent
0567221848
commit
de0f51a02c
4
ltests.c
4
ltests.c
@ -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
|
** Internal Module for Debugging of the Lua Implementation
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
@ -714,7 +714,7 @@ static int string_query (lua_State *L) {
|
|||||||
GCObject *ts;
|
GCObject *ts;
|
||||||
int n = 0;
|
int n = 0;
|
||||||
for (ts = tb->hash[s]; ts; ts = gch(ts)->next) {
|
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);
|
incr_top(L);
|
||||||
n++;
|
n++;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user