From 17ee57f8e022be330d4c9de3754d7455f46a851d Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 21 Jul 2014 13:02:10 -0300 Subject: 'iswhite' and related macros now can work directly on any object (no need to convert to 'GCObject') --- lvm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lvm.c') diff --git a/lvm.c b/lvm.c index 49115c4b..ec5bf62b 100644 --- a/lvm.c +++ b/lvm.c @@ -1,5 +1,5 @@ /* -** $Id: lvm.c,v 2.218 2014/07/17 12:30:53 roberto Exp roberto $ +** $Id: lvm.c,v 2.219 2014/07/18 13:36:14 roberto Exp roberto $ ** Lua virtual machine ** See Copyright Notice in lua.h */ @@ -549,7 +549,7 @@ static void pushclosure (lua_State *L, Proto *p, UpVal **encup, StkId base, ncl->upvals[i]->refcount++; /* new closure is white, so we do not need a barrier here */ } - if (!isblack(obj2gco(p))) /* cache will not break GC invariant? */ + if (!isblack(p)) /* cache will not break GC invariant? */ p->cache = ncl; /* save it on cache for reuse */ } -- cgit v1.2.3-55-g6feb