diff options
Diffstat (limited to 'apps/plugins/lua/lfunc.c')
-rw-r--r-- | apps/plugins/lua/lfunc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/lua/lfunc.c b/apps/plugins/lua/lfunc.c index 813e88f583..d2ce63dc4b 100644 --- a/apps/plugins/lua/lfunc.c +++ b/apps/plugins/lua/lfunc.c | |||
@@ -66,7 +66,6 @@ UpVal *luaF_findupval (lua_State *L, StkId level) { | |||
66 | } | 66 | } |
67 | uv = luaM_new(L, UpVal); /* not found: create a new one */ | 67 | uv = luaM_new(L, UpVal); /* not found: create a new one */ |
68 | uv->tt = LUA_TUPVAL; | 68 | uv->tt = LUA_TUPVAL; |
69 | uv->marked = luaC_white(g); | ||
70 | uv->v = level; /* current value lives in the stack */ | 69 | uv->v = level; /* current value lives in the stack */ |
71 | uv->next = *pp; /* chain it in the proper position */ | 70 | uv->next = *pp; /* chain it in the proper position */ |
72 | *pp = obj2gco(uv); | 71 | *pp = obj2gco(uv); |
@@ -74,6 +73,7 @@ UpVal *luaF_findupval (lua_State *L, StkId level) { | |||
74 | uv->u.l.next = g->uvhead.u.l.next; | 73 | uv->u.l.next = g->uvhead.u.l.next; |
75 | uv->u.l.next->u.l.prev = uv; | 74 | uv->u.l.next->u.l.prev = uv; |
76 | g->uvhead.u.l.next = uv; | 75 | g->uvhead.u.l.next = uv; |
76 | luaC_marknew(L, obj2gco(uv)); | ||
77 | lua_assert(uv->u.l.next->u.l.prev == uv && uv->u.l.prev->u.l.next == uv); | 77 | lua_assert(uv->u.l.next->u.l.prev == uv && uv->u.l.prev->u.l.next == uv); |
78 | return uv; | 78 | return uv; |
79 | } | 79 | } |