diff options
Diffstat (limited to 'lgc.c')
-rw-r--r-- | lgc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lgc.c,v 1.153 2002/10/22 17:58:14 roberto Exp roberto $ | 2 | ** $Id: lgc.c,v 1.154 2002/10/25 20:05:28 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 | */ |
@@ -344,7 +344,7 @@ static void checkSizes (lua_State *L) { | |||
344 | static void do1gcTM (lua_State *L, Udata *udata) { | 344 | static void do1gcTM (lua_State *L, Udata *udata) { |
345 | const TObject *tm = fasttm(L, udata->uv.metatable, TM_GC); | 345 | const TObject *tm = fasttm(L, udata->uv.metatable, TM_GC); |
346 | if (tm != NULL) { | 346 | if (tm != NULL) { |
347 | setobj(L->top, tm); | 347 | setobj2s(L->top, tm); |
348 | setuvalue(L->top+1, udata); | 348 | setuvalue(L->top+1, udata); |
349 | L->top += 2; | 349 | L->top += 2; |
350 | luaD_call(L, L->top - 2, 0); | 350 | luaD_call(L, L->top - 2, 0); |