use ttnov in shareproto

This commit is contained in:
hong
2019-05-05 10:05:23 +08:00
committed by 云风
parent 505da68cb6
commit bed5f878dc

View File

@@ -157,7 +157,7 @@ void luaF_shareproto (Proto *f) {
return;
MAKESHARED(f->source);
for (i = 0; i < f->sizek; i++) {
if (ttype(&f->k[i]) == LUA_TSTRING)
if (ttnov(&f->k[i]) == LUA_TSTRING)
MAKESHARED(tsvalue(&f->k[i]));
}
for (i = 0; i < f->sizeupvalues; i++)