Make btHashString const-correct by changing a target pointer type.

This commit is contained in:
Sam Hocevar 2017-09-01 20:02:58 +02:00
parent 29271c53eb
commit d8b5ebd818

View File

@ -52,7 +52,7 @@ struct btHashString
{
int ret = 0 ;
while( ! (ret = *(unsigned char *)src - *(unsigned char *)dst) && *dst)
while( ! (ret = *(const unsigned char *)src - *(const unsigned char *)dst) && *dst)
++src, ++dst;
if ( ret < 0 )