mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Issue #9566: Explicit downcast to fix compiler warnings on Win64
This commit is contained in:
parent
4ca1cf35fb
commit
56cb12542d
4 changed files with 8 additions and 6 deletions
|
|
@ -222,7 +222,7 @@ sha1_process(struct sha1_state *sha1,
|
|||
} else {
|
||||
n = MIN(inlen, (Py_ssize_t)(SHA1_BLOCKSIZE - sha1->curlen));
|
||||
memcpy(sha1->buf + sha1->curlen, in, (size_t)n);
|
||||
sha1->curlen += n;
|
||||
sha1->curlen += (SHA1_INT32)n;
|
||||
in += n;
|
||||
inlen -= n;
|
||||
if (sha1->curlen == SHA1_BLOCKSIZE) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue