mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Make while condition explicit.
This commit is contained in:
parent
01666ded2f
commit
adeb9b74f9
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user