diff options
author | Bart Van Assche <bvanassche@acm.org> | 2019-06-23 17:04:58 -0700 |
---|---|---|
committer | Paul Evans <leonerd@leonerd.org.uk> | 2022-12-13 12:59:04 +0000 |
commit | 1829598c6e4e29da89d73624e461aaffd983fde3 (patch) | |
tree | 8cf466ee9f1029ecdfdf12bffb15b3e753f90d50 /zaphod32_hash.h | |
parent | 84fa78b4832e64bc0dfc0ea25843d48b4d9782c7 (diff) | |
download | perl-1829598c6e4e29da89d73624e461aaffd983fde3.tar.gz |
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 *).
Diffstat (limited to 'zaphod32_hash.h')
-rw-r--r-- | zaphod32_hash.h | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |