mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 02:30:46 +00:00
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:
parent
0de543ca2b
commit
f7d4209084
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue