Make while condition explicit.

This commit is contained in:
Bartosz Taudul 2017-10-28 21:35:38 +02:00
parent 01666ded2f
commit adeb9b74f9

View File

@ -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;
}