aboutsummaryrefslogtreecommitdiffstats
path: root/libkeccak_state_marshal.c
diff options
context:
space:
mode:
Diffstat (limited to 'libkeccak_state_marshal.c')
-rw-r--r--libkeccak_state_marshal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libkeccak_state_marshal.c b/libkeccak_state_marshal.c
index f5b086e..00b54cc 100644
--- a/libkeccak_state_marshal.c
+++ b/libkeccak_state_marshal.c
@@ -13,7 +13,7 @@ size_t
libkeccak_state_marshal(const struct libkeccak_state *restrict state, void *restrict data_)
{
#define set(type, var) *((type *)data) = state->var, data += sizeof(type) / sizeof(char)
- char *restrict data = data_;
+ unsigned char *restrict data = data_;
set(long int, r);
set(long int, c);
set(long int, n);