This commit is contained in:
Cloud Wu
2019-08-28 20:19:15 +08:00
parent 478575436b
commit e4224137f1

View File

@@ -64,6 +64,8 @@ int luaS_eqshrstr (TString *a, TString *b) {
}
void luaS_share (TString *ts) {
if (ts == NULL)
return;
makeshared(ts);
ts->id = ATOM_DEC(&STRID);
}