aboutsummaryrefslogtreecommitdiff
path: root/lstring.c
diff options
context:
space:
mode:
authorRoberto I <roberto@inf.puc-rio.br>2025-10-14 13:50:24 -0300
committerRoberto I <roberto@inf.puc-rio.br>2025-10-14 13:50:24 -0300
commit9c66903cc55388006a833f0f3911ea81fa86edea (patch)
tree994a7dce6af07ea1603a1dad8cbdc77006b25ce8 /lstring.c
parent30a7b93439f72570cd3315c201b140df3c07e106 (diff)
downloadlua-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lstring.c b/lstring.c
index 17c6fd8f..75635142 100644
--- a/lstring.c
+++ b/lstring.c
@@ -50,7 +50,7 @@ int luaS_eqstr (TString *a, TString *b) {
50} 50}
51 51
52 52
53unsigned luaS_hash (const char *str, size_t l, unsigned seed) { 53static 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]));