- Functions luaK_goiffalse, luaS_hash made private.
- Removed unused macro log2maxs.
This commit is contained in:
Roberto I
2025-10-14 13:50:24 -03:00
parent 30a7b93439
commit 9c66903cc5
5 changed files with 2 additions and 11 deletions

View File

@@ -50,7 +50,7 @@ int luaS_eqstr (TString *a, TString *b) {
}
unsigned luaS_hash (const char *str, size_t l, unsigned seed) {
static unsigned luaS_hash (const char *str, size_t l, unsigned seed) {
unsigned int h = seed ^ cast_uint(l);
for (; l > 0; l--)
h ^= ((h<<5) + (h>>2) + cast_byte(str[l - 1]));