summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sbox32_hash.h2
-rw-r--r--stadtx_hash.h2
-rw-r--r--zaphod32_hash.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/sbox32_hash.h b/sbox32_hash.h
index 9c98195899..748256c71c 100644
--- a/sbox32_hash.h
+++ b/sbox32_hash.h
@@ -1421,7 +1421,7 @@ SBOX32_STATIC_INLINE void sbox32_seed_state96 (
const U8 *seed_ch,
U8 *state_ch
) {
- U32 *seed= (U32 *)seed_ch;
+ const U32 *seed= (const U32 *)seed_ch;
U32 *state= (U32 *)state_ch;
U32 *state_cursor = state + 1;
U32 *sbox32_end = state + 1 + (256 * SBOX32_MAX_LEN);
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,
diff --git a/zaphod32_hash.h b/zaphod32_hash.h
index ec091f723c..842b2473f9 100644
--- a/zaphod32_hash.h
+++ b/zaphod32_hash.h
@@ -134,7 +134,7 @@ void zaphod32_seed_state (
const U8 *seed_ch,
U8 *state_ch
) {
- U32 *seed= (U32 *)seed_ch;
+ const U32 *seed= (const U32 *)seed_ch;
U32 *state= (U32 *)state_ch;
/* hex expansion of pi, skipping first two digits. pi= 3.2[43f6...]*/