fix build

This commit is contained in:
Cloud Wu
2021-03-10 12:01:15 +08:00
parent 072d782651
commit 213c9966e4

View File

@@ -60,7 +60,7 @@ void luaS_share (TString *ts) {
if (ts == NULL || isshared(ts)) if (ts == NULL || isshared(ts))
return; return;
makeshared(ts); makeshared(ts);
ts->id = ATOM_DEC(&STRID); ts->id = ATOM_FDEC(&STRID)-1;
} }
unsigned int luaS_hash (const char *str, size_t l, unsigned int seed) { unsigned int luaS_hash (const char *str, size_t l, unsigned int seed) {