From dff9be4224a1cd0f338b544b9e01d42f0f4e537f Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 7 Nov 2002 13:37:10 -0200 Subject: new macros to distinguish different types of object moves (for future GC evolution). --- lgc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lgc.c') diff --git a/lgc.c b/lgc.c index efa35cad..840bc796 100644 --- a/lgc.c +++ b/lgc.c @@ -1,5 +1,5 @@ /* -** $Id: lgc.c,v 1.153 2002/10/22 17:58:14 roberto Exp roberto $ +** $Id: lgc.c,v 1.154 2002/10/25 20:05:28 roberto Exp roberto $ ** Garbage Collector ** See Copyright Notice in lua.h */ @@ -344,7 +344,7 @@ static void checkSizes (lua_State *L) { static void do1gcTM (lua_State *L, Udata *udata) { const TObject *tm = fasttm(L, udata->uv.metatable, TM_GC); if (tm != NULL) { - setobj(L->top, tm); + setobj2s(L->top, tm); setuvalue(L->top+1, udata); L->top += 2; luaD_call(L, L->top - 2, 0); -- cgit v1.2.3-55-g6feb