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:
DarthArgus
2015-10-13 01:07:49 -05:00
parent fd18b5fba1
commit 266ac3ec3a
+1 -1
View File
@@ -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);