From 1829598c6e4e29da89d73624e461aaffd983fde3 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 23 Jun 2019 17:04:58 -0700 Subject: Do not cast away constness Fix most compiler warnings caused by building Perl extensions with -Wcast-qual. This is realized by changing the type of multiple T * arguments into const T * and by changing a few (T *) casts into (const T *). --- zaphod32_hash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zaphod32_hash.h') diff --git a/zaphod32_hash.h b/zaphod32_hash.h index 8b15adfb45..bf802ccbb7 100644 --- a/zaphod32_hash.h +++ b/zaphod32_hash.h @@ -178,7 +178,7 @@ U32 zaphod32_hash_with_state( const U8 *key, const STRLEN key_len ) { - U32 *state= (U32 *)state_ch; + const U32 *state= (const U32 *)state_ch; const U8 *end; STRLEN len = key_len; U32 v0= state[0]; -- cgit v1.2.1