blake2: silence two more warnings on platforms with size_t < uint64_t… · pythoncapi/cpython@dfb9ef1 · GitHub
Skip to content

Commit dfb9ef1

Browse files
committed
blake2: silence two more warnings on platforms with size_t < uint64_t. Don't use SSE2 when cross-compiling
1 parent 680cb15 commit dfb9ef1

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

Modules/_blake2/impl/blake2b-ref.c

Lines changed: 2 additions & 2 deletions

Modules/_blake2/impl/blake2s-ref.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,8 @@ int blake2s_update( blake2s_state *S, const uint8_t *in, uint64_t inlen )
298298
}
299299
else /* inlen <= fill */
300300
{
301-
memcpy( S->buf + left, in, inlen );
302-
S->buflen += inlen; /* Be lazy, do not compress */
301+
memcpy( S->buf + left, in, (size_t)inlen );
302+
S->buflen += (size_t)inlen; /* Be lazy, do not compress */
303303
in += inlen;
304304
inlen -= inlen;
305305
}

setup.py

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)