diff options
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])); |
