From 266ac3ec3ae285e550f31efabd37c7d1bebfd51b Mon Sep 17 00:00:00 2001 From: DarthArgus Date: Tue, 13 Oct 2015 01:07:49 -0500 Subject: [PATCH] this should theoretically fix an order of operations issue that clang detected - ? has lower precedence than + so + is eval'ed first --- external/3rd/library/udplibrary/hashtable.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external/3rd/library/udplibrary/hashtable.hpp b/external/3rd/library/udplibrary/hashtable.hpp index 8d9e80b7..5a6d55aa 100644 --- a/external/3rd/library/udplibrary/hashtable.hpp +++ b/external/3rd/library/udplibrary/hashtable.hpp @@ -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);