Use lowercase when computing hashes in hash_getcode()

It turns out hash_findcase() has never worked properly because the correct bucket would never have been searched.

git-svn-id: https://svn.eduke32.com/eduke32@7364 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-03-02 23:21:13 +00:00
parent 0de543ca2b
commit f7d4209084
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ static inline uint32_t hash_getcode(const char *s)
uint32_t h = 5381;
int32_t ch;
while ((ch = *s++) != '\0')
while ((ch = Btolower(*s++)) != '\0')
h = ((h << 5) + h) ^ ch;
return h;