Fix a missing check

cmake
Dibyendu Majumdar 3 years ago
parent 249f22c215
commit b717be20e0

@ -1688,7 +1688,7 @@ LUA_API void lua_upvaluejoin (lua_State *L, int fidx1, int n1,
ravitype_t t1, t2;
UpVal **up1 = getupvalref(L, fidx1, n1, &f1, &t1);
UpVal **up2 = getupvalref(L, fidx2, n2, NULL, &t2);
if (t1 == t2) {
if (t1 == t2 && *up1 != *up2) {
luaC_upvdeccount(L, *up1);
*up1 = *up2;
(*up1)->refcount++;

Loading…
Cancel
Save