Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf.pld@gmail.com>2017-10-28 22:35:38 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2017-10-28 22:35:38 +0300
commitadeb9b74f9aac43f235abf36e25f89f24dbc466d (patch)
treead3ade6ef30df1a9f6ee339d1b025498615d4dcd /server/TracyCharUtil.hpp
parent01666ded2ff62a4e3158c50172c20dbc802507e5 (diff)
Make while condition explicit.
Diffstat (limited to 'server/TracyCharUtil.hpp')
-rw-r--r--server/TracyCharUtil.hpp2
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;
}