aboutsummaryrefslogtreecommitdiffstats
path: root/extra/libkeccak_state_unmarshal.c
diff options
context:
space:
mode:
Diffstat (limited to 'extra/libkeccak_state_unmarshal.c')
-rw-r--r--extra/libkeccak_state_unmarshal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/extra/libkeccak_state_unmarshal.c b/extra/libkeccak_state_unmarshal.c
index 4714566..0938ba1 100644
--- a/extra/libkeccak_state_unmarshal.c
+++ b/extra/libkeccak_state_unmarshal.c
@@ -30,7 +30,7 @@ libkeccak_state_unmarshal(struct libkeccak_state *restrict state, const void *re
if (!state) {
data += 7U * sizeof(long int);
- data += 1U * sizeof(int64_t);
+ data += 1U * sizeof(uint64_t);
data += sizeof(state->S);
mptr = *(const size_t *)data;
data += 2U * sizeof(size_t);
@@ -46,7 +46,7 @@ libkeccak_state_unmarshal(struct libkeccak_state *restrict state, const void *re
get(wmod);
get(l);
get(nr);
- memcpy(state->S, data, sizeof(state->S));
+ memcpy(&state->S, data, sizeof(state->S));
data += sizeof(state->S);
get(mptr);
get(mlen);