diff options
| author | Roberto I <roberto@inf.puc-rio.br> | 2025-10-14 13:50:24 -0300 |
|---|---|---|
| committer | Roberto I <roberto@inf.puc-rio.br> | 2025-10-14 13:50:24 -0300 |
| commit | 9c66903cc55388006a833f0f3911ea81fa86edea (patch) | |
| tree | 994a7dce6af07ea1603a1dad8cbdc77006b25ce8 /lstring.c | |
| parent | 30a7b93439f72570cd3315c201b140df3c07e106 (diff) | |
| download | lua-9c66903cc55388006a833f0f3911ea81fa86edea.tar.gz lua-9c66903cc55388006a833f0f3911ea81fa86edea.tar.bz2 lua-9c66903cc55388006a833f0f3911ea81fa86edea.zip | |
Details
- Functions luaK_goiffalse, luaS_hash made private.
- Removed unused macro log2maxs.
Diffstat (limited to 'lstring.c')
| -rw-r--r-- | lstring.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -50,7 +50,7 @@ int luaS_eqstr (TString *a, TString *b) { | |||
| 50 | } | 50 | } |
| 51 | 51 | ||
| 52 | 52 | ||
| 53 | unsigned luaS_hash (const char *str, size_t l, unsigned seed) { | 53 | static unsigned luaS_hash (const char *str, size_t l, unsigned seed) { |
| 54 | unsigned int h = seed ^ cast_uint(l); | 54 | unsigned int h = seed ^ cast_uint(l); |
| 55 | for (; l > 0; l--) | 55 | for (; l > 0; l--) |
| 56 | h ^= ((h<<5) + (h>>2) + cast_byte(str[l - 1])); | 56 | h ^= ((h<<5) + (h>>2) + cast_byte(str[l - 1])); |
