mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +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;
|
uint32_t hash = 5381;
|
||||||
int c;
|
int c;
|
||||||
|
|
||||||
while( c = *str++ )
|
while( ( c = *str++ ) != 0 )
|
||||||
{
|
{
|
||||||
hash = ( ( hash << 5 ) + hash ) ^ c;
|
hash = ( ( hash << 5 ) + hash ) ^ c;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user