summaryrefslogtreecommitdiffstats
path: root/Modules/sha1module.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2012-10-30 23:33:57 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2012-10-30 23:33:57 (GMT)
commit56cb12542d7ea5c95b9483e3db69388bcbc2ffbb (patch)
tree2c66f16414127cfe2dcd99e1a9af08eb83ee8de9 /Modules/sha1module.c
parent4ca1cf35fbf042700dfeaf7bf27d3d476eff32a6 (diff)
downloadcpython-56cb12542d7ea5c95b9483e3db69388bcbc2ffbb.zip
cpython-56cb12542d7ea5c95b9483e3db69388bcbc2ffbb.tar.gz
cpython-56cb12542d7ea5c95b9483e3db69388bcbc2ffbb.tar.bz2
Issue #9566: Explicit downcast to fix compiler warnings on Win64
Diffstat (limited to 'Modules/sha1module.c')
-rw-r--r--Modules/sha1module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/sha1module.c b/Modules/sha1module.c
index a733c4b..ab93f68 100644
--- a/Modules/sha1module.c
+++ b/Modules/sha1module.c
@@ -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) {