From d8b5ebd818d6d8af2f96cd5b23d3c7063652ecd6 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Fri, 1 Sep 2017 20:02:58 +0200 Subject: [PATCH] Make btHashString const-correct by changing a target pointer type. --- src/LinearMath/btHashMap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LinearMath/btHashMap.h b/src/LinearMath/btHashMap.h index a0a062750..5e9cdb605 100644 --- a/src/LinearMath/btHashMap.h +++ b/src/LinearMath/btHashMap.h @@ -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 )