Tag LUA_TUPVALTBC replaced by a flag

It is simpler to signal a to-be-closed upvalue with a boolean flag,
instead of using a different tag.
This commit is contained in:
Roberto Ierusalimschy
2019-07-19 11:12:31 -03:00
parent 9cdf6b7082
commit dc07719b0d
5 changed files with 13 additions and 18 deletions

View File

@@ -397,8 +397,7 @@ static void checkrefs (global_State *g, GCObject *o) {
checkudata(g, gco2u(o));
break;
}
case LUA_TUPVAL:
case LUA_TUPVALTBC: {
case LUA_TUPVAL: {
checkvalref(g, o, gco2upv(o)->v);
break;
}