diff options
author | Li Jin <dragon-fly@qq.com> | 2020-08-06 01:00:41 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2020-08-06 01:00:41 +0800 |
commit | 2506c1b429e952245295e54e71dac4b345e88984 (patch) | |
tree | ef9f243b6ca18d07b2734041c93fb496cdd8d796 /src/lua/lfunc.c | |
parent | c74f45ba9778792e6f5a239539d25fd7918252f7 (diff) | |
download | yuescript-2506c1b429e952245295e54e71dac4b345e88984.tar.gz yuescript-2506c1b429e952245295e54e71dac4b345e88984.tar.bz2 yuescript-2506c1b429e952245295e54e71dac4b345e88984.zip |
update Lua 5.4.
Diffstat (limited to 'src/lua/lfunc.c')
-rw-r--r-- | src/lua/lfunc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lua/lfunc.c b/src/lua/lfunc.c index 10100e5..f8c3c44 100644 --- a/src/lua/lfunc.c +++ b/src/lua/lfunc.c | |||
@@ -234,9 +234,10 @@ int luaF_close (lua_State *L, StkId level, int status) { | |||
234 | luaF_unlinkupval(uv); | 234 | luaF_unlinkupval(uv); |
235 | setobj(L, slot, uv->v); /* move value to upvalue slot */ | 235 | setobj(L, slot, uv->v); /* move value to upvalue slot */ |
236 | uv->v = slot; /* now current value lives here */ | 236 | uv->v = slot; /* now current value lives here */ |
237 | if (!iswhite(uv)) | 237 | if (!iswhite(uv)) { /* neither white nor dead? */ |
238 | gray2black(uv); /* closed upvalues cannot be gray */ | 238 | gray2black(uv); /* closed upvalues cannot be gray */ |
239 | luaC_barrier(L, uv, slot); | 239 | luaC_barrier(L, uv, slot); |
240 | } | ||
240 | } | 241 | } |
241 | return status; | 242 | return status; |
242 | } | 243 | } |