mark all short string shared, see #1027

This commit is contained in:
Cloud Wu
2019-06-13 16:58:57 +08:00
parent ca4f549f0d
commit 7fed938593
2 changed files with 2 additions and 3 deletions

View File

@@ -47,8 +47,7 @@ mark_shared(lua_State *L) {
case LUA_TSTRING: {
const char *str = lua_tostring(L, idx);
TString *ts = (TString *)(str - sizeof(UTString));
if(ts->tt==LUA_TLNGSTR)
makeshared(ts);
makeshared(ts);
break;
}
default: