mirror of
https://github.com/lua/lua
synced 2025-01-06 01:22:06 +03:00
small bug
This commit is contained in:
parent
8e696dd14a
commit
9832f6b186
6
lfunc.c
6
lfunc.c
@ -1,5 +1,5 @@
|
||||
/*
|
||||
** $Id: lfunc.c,v 2.8 2005/02/10 13:25:02 roberto Exp roberto $
|
||||
** $Id: lfunc.c,v 2.9 2005/02/18 12:40:02 roberto Exp roberto $
|
||||
** Auxiliary functions to manipulate prototypes and closures
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
@ -105,10 +105,6 @@ void luaF_close (lua_State *L, StkId level) {
|
||||
else {
|
||||
unlinkupval(uv);
|
||||
setobj(L, &uv->u.value, uv->v);
|
||||
if (isgray(o)) {
|
||||
gray2black(o); /* closed upvalues are never gray */
|
||||
luaC_barrier(L, uv, &uv->u.value);
|
||||
}
|
||||
uv->v = &uv->u.value; /* now current value lives here */
|
||||
luaC_linkupval(L, uv); /* link upvalue into `gcroot' list */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user