From adeb9b74f9aac43f235abf36e25f89f24dbc466d Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 28 Oct 2017 21:35:38 +0200 Subject: [PATCH] Make while condition explicit. --- server/TracyCharUtil.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }