mirror of
https://github.com/lua/lua
synced 2026-09-27 00:28:25 +03:00
small bug
This commit is contained in:
parent
8e696dd14a
commit
9832f6b186
1 changed files with 1 additions and 5 deletions
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…
Add table
Add a link
Reference in a new issue