From ab7d9bfd0c38f1dd8eda40ae3c1f1c686564a92d Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 17 Nov 2003 17:50:05 -0200 Subject: cleaner code for manipulation of `marked' field --- lfunc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lfunc.c') diff --git a/lfunc.c b/lfunc.c index 7117b783..a3cb42a1 100644 --- a/lfunc.c +++ b/lfunc.c @@ -1,5 +1,5 @@ /* -** $Id: lfunc.c,v 1.68 2003/10/02 19:21:09 roberto Exp roberto $ +** $Id: lfunc.c,v 1.69 2003/10/20 17:42:41 roberto Exp roberto $ ** Auxiliary functions to manipulate prototypes and closures ** See Copyright Notice in lua.h */ @@ -64,7 +64,7 @@ UpVal *luaF_findupval (lua_State *L, StkId level) { } v = luaM_new(L, UpVal); /* not found: create a new one */ v->tt = LUA_TUPVAL; - v->marked = 1; /* open upvalues should not be collected */ + v->marked = bitmask(BLACKBIT); /* open upvalues should not be collected */ v->v = level; /* current value lives in the stack */ v->next = *pp; /* chain it in the proper position */ *pp = valtogco(v); -- cgit v1.2.3-55-g6feb