diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-05-11 17:48:36 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-05-11 17:48:36 -0300 |
| commit | de0f51a02c7e71111168dd4f4f7533445e0cc58a (patch) | |
| tree | 80bb551a7b3253100eb064778bbdefd93047a8db | |
| parent | 0567221848b1802ab18cc2ac3e0ae5dc7fd46dc1 (diff) | |
| download | lua-de0f51a02c7e71111168dd4f4f7533445e0cc58a.tar.gz lua-de0f51a02c7e71111168dd4f4f7533445e0cc58a.tar.bz2 lua-de0f51a02c7e71111168dd4f4f7533445e0cc58a.zip | |
wrong type being assigned (not detected because of obj2gco macro)
| -rw-r--r-- | ltests.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltests.c,v 2.104 2010/05/07 18:23:17 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 2.105 2010/05/10 18:24:36 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 | */ |
| @@ -714,7 +714,7 @@ static int string_query (lua_State *L) { | |||
| 714 | GCObject *ts; | 714 | GCObject *ts; |
| 715 | int n = 0; | 715 | int n = 0; |
| 716 | for (ts = tb->hash[s]; ts; ts = gch(ts)->next) { | 716 | for (ts = tb->hash[s]; ts; ts = gch(ts)->next) { |
| 717 | setsvalue2s(L, L->top, gco2ts(ts)); | 717 | setsvalue2s(L, L->top, rawgco2ts(ts)); |
| 718 | incr_top(L); | 718 | incr_top(L); |
| 719 | n++; | 719 | n++; |
| 720 | } | 720 | } |
