Merge pull request #1290 from lolengine/fix-const-removal

Make btHashString const-correct by changing a target pointer type.
This commit is contained in:
erwincoumans 2017-09-02 13:24:38 -07:00 committed by GitHub
commit db8c0853b3

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 )