summaryrefslogtreecommitdiffstats
path: root/Modules/_blake2/blake2s_impl.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_blake2/blake2s_impl.c')
-rw-r--r--Modules/_blake2/blake2s_impl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_blake2/blake2s_impl.c b/Modules/_blake2/blake2s_impl.c
index 8b38270..53c22c2 100644
--- a/Modules/_blake2/blake2s_impl.c
+++ b/Modules/_blake2/blake2s_impl.c
@@ -208,7 +208,7 @@ py_blake2s_new_impl(PyTypeObject *type, PyObject *data, int digest_size,
BLAKE2S_KEYBYTES);
goto error;
}
- self->param.key_length = key->len;
+ self->param.key_length = (uint8_t)key->len;
}
/* Initialize hash state. */