dec id would be better

This commit is contained in:
Cloud Wu
2019-06-18 14:40:29 +08:00
committed by 云风
parent 5d26fb3f18
commit 10fd5791f7

View File

@@ -65,7 +65,7 @@ int luaS_eqshrstr (TString *a, TString *b) {
void luaS_share (TString *ts) { void luaS_share (TString *ts) {
makeshared(ts); makeshared(ts);
ts->id = ATOM_INC(&STRID); ts->id = ATOM_DEC(&STRID);
} }
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) {