Merge pull request #1290 from lolengine/fix-const-removal
Make btHashString const-correct by changing a target pointer type.
This commit is contained in:
@@ -52,7 +52,7 @@ struct btHashString
|
|||||||
{
|
{
|
||||||
int ret = 0 ;
|
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;
|
++src, ++dst;
|
||||||
|
|
||||||
if ( ret < 0 )
|
if ( ret < 0 )
|
||||||
|
|||||||
Reference in New Issue
Block a user