summaryrefslogtreecommitdiff
path: root/Modules/_blake2/impl/blake2s-ref.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_blake2/impl/blake2s-ref.c')
-rw-r--r--Modules/_blake2/impl/blake2s-ref.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_blake2/impl/blake2s-ref.c b/Modules/_blake2/impl/blake2s-ref.c
index b90e8efc4e..b08e72b737 100644
--- a/Modules/_blake2/impl/blake2s-ref.c
+++ b/Modules/_blake2/impl/blake2s-ref.c
@@ -298,8 +298,8 @@ int blake2s_update( blake2s_state *S, const uint8_t *in, uint64_t inlen )
}
else /* inlen <= fill */
{
- memcpy( S->buf + left, in, inlen );
- S->buflen += inlen; /* Be lazy, do not compress */
+ memcpy( S->buf + left, in, (size_t)inlen );
+ S->buflen += (size_t)inlen; /* Be lazy, do not compress */
in += inlen;
inlen -= inlen;
}