aboutsummaryrefslogtreecommitdiff
path: root/lstring.c
diff options
context:
space:
mode:
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]));