diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-05-11 17:49:26 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-05-11 17:49:26 -0300 |
commit | 4fd76b8148eae1a1be43a265588bd0fc3959c33b (patch) | |
tree | c645d1e78b310f8ae36eead58d189b2792eb835d | |
parent | de0f51a02c7e71111168dd4f4f7533445e0cc58a (diff) | |
download | lua-4fd76b8148eae1a1be43a265588bd0fc3959c33b.tar.gz lua-4fd76b8148eae1a1be43a265588bd0fc3959c33b.tar.bz2 lua-4fd76b8148eae1a1be43a265588bd0fc3959c33b.zip |
avoid "strong" cast
-rw-r--r-- | lgc.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lgc.c,v 2.93 2010/05/10 16:46:49 roberto Exp roberto $ | 2 | ** $Id: lgc.c,v 2.94 2010/05/10 18:23:45 roberto Exp roberto $ |
3 | ** Garbage Collector | 3 | ** Garbage Collector |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -902,7 +902,8 @@ static l_mem singlestep (lua_State *L) { | |||
902 | } | 902 | } |
903 | else { | 903 | else { |
904 | /* sweep main thread */ | 904 | /* sweep main thread */ |
905 | sweeplist(L, cast(GCObject **, &g->mainthread), 1); | 905 | GCObject *mt = obj2gco(g->mainthread); |
906 | sweeplist(L, &mt, 1); | ||
906 | checkSizes(L); | 907 | checkSizes(L); |
907 | g->gcstate = GCSpause; /* finish collection */ | 908 | g->gcstate = GCSpause; /* finish collection */ |
908 | return GCSWEEPCOST; | 909 | return GCSWEEPCOST; |