summaryrefslogtreecommitdiff
path: root/stadtx_hash.h
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2017-09-13 13:34:17 +0200
committerYves Orton <demerphq@gmail.com>2017-09-13 13:34:17 +0200
commit20e4c2ede583268f69be4957f1f94953e911c5bf (patch)
treea97e5af551e7b764e2a6f8f5253980b0128ec11f /stadtx_hash.h
parent45908e4d120d33a558a8b052036c56cd0c90b898 (diff)
downloadperl-20e4c2ede583268f69be4957f1f94953e911c5bf.tar.gz
in hash init code preserve constness
This causes warnings in some our builds as can be seen in some smoke reports: zaphod32_hash.h:185:17: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual]
Diffstat (limited to 'stadtx_hash.h')
-rw-r--r--stadtx_hash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/stadtx_hash.h b/stadtx_hash.h
index 3a5d81e7cb..30278e3b53 100644
--- a/stadtx_hash.h
+++ b/stadtx_hash.h
@@ -118,7 +118,7 @@ STADTX_STATIC_INLINE void stadtx_seed_state (
const U8 *seed_ch,
U8 *state_ch
) {
- U64 *seed= (U64 *)seed_ch;
+ const U64 *seed= (const U64 *)seed_ch;
U64 *state= (U64 *)state_ch;
/* first we apply two masks to each word of the seed, this means that
* a) at least one of state[0] and state[2] is nonzero,