diff options
author | Bartosz Taudul <wolf.pld@gmail.com> | 2017-10-28 22:35:38 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf.pld@gmail.com> | 2017-10-28 22:35:38 +0300 |
commit | adeb9b74f9aac43f235abf36e25f89f24dbc466d (patch) | |
tree | ad3ade6ef30df1a9f6ee339d1b025498615d4dcd /server/TracyCharUtil.hpp | |
parent | 01666ded2ff62a4e3158c50172c20dbc802507e5 (diff) |
Make while condition explicit.
Diffstat (limited to 'server/TracyCharUtil.hpp')
-rw-r--r-- | server/TracyCharUtil.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/TracyCharUtil.hpp b/server/TracyCharUtil.hpp index 408e59dd..ece9de1b 100644 --- a/server/TracyCharUtil.hpp +++ b/server/TracyCharUtil.hpp @@ -15,7 +15,7 @@ static inline uint32_t hash( const char* str ) uint32_t hash = 5381; int c; - while( c = *str++ ) + while( ( c = *str++ ) != 0 ) { hash = ( ( hash << 5 ) + hash ) ^ c; } |