mirror of
https://github.com/SWG-Source/src.git
synced 2026-07-28 22:15:49 -04:00
this should theoretically fix an order of operations issue that clang detected - ? has lower precedence than + so + is eval'ed first
This commit is contained in:
+1
-1
@@ -148,7 +148,7 @@ inline int UpperHashString(char *string)
|
||||
int h = 0;
|
||||
while (*string != 0)
|
||||
{
|
||||
h = ((31 * h) + (*string >= 'a' && *string <= 'z') ? (*string - 0x20) : *string) ^ (h >> 26);
|
||||
h = ((31 * h) + ((*string >= 'a' && *string <= 'z') ? (*string - 0x20) : *string) ^ (h >> 26));
|
||||
string++;
|
||||
}
|
||||
return(h);
|
||||
|
||||
Reference in New Issue
Block a user