aboutsummaryrefslogtreecommitdiff
path: root/lfunc.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lfunc.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/lfunc.c b/lfunc.c
index 4ed1fcb9..4e72fcad 100644
--- a/lfunc.c
+++ b/lfunc.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lfunc.c,v 2.21 2010/03/26 20:58:11 roberto Exp roberto $ 2** $Id: lfunc.c,v 2.22 2010/04/29 17:34:35 roberto Exp roberto $
3** Auxiliary functions to manipulate prototypes and closures 3** Auxiliary functions to manipulate prototypes and closures
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -101,11 +101,7 @@ void luaF_close (lua_State *L, StkId level) {
101 uv->v = &uv->u.value; /* now current value lives here */ 101 uv->v = &uv->u.value; /* now current value lives here */
102 gch(o)->next = g->allgc; /* link upvalue into 'allgc' list */ 102 gch(o)->next = g->allgc; /* link upvalue into 'allgc' list */
103 g->allgc = o; 103 g->allgc = o;
104 lua_assert(!isblack(o)); /* open upvalues are never black */ 104 luaC_checkupvalcolor(g, uv);
105 if (isgray(o)) { /* is it marked? */
106 gray2black(o); /* could not be black; now it can */
107 luaC_barrier(L, uv, uv->v);
108 }
109 } 105 }
110 } 106 }
111} 107}