summaryrefslogtreecommitdiffstats
path: root/Modules/sha256module.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-01-04 12:59:15 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-01-04 12:59:15 (GMT)
commit0fcab4a3ed5e39769609b60d6179c4c801e45985 (patch)
treefc5592e351ed18a96d7e94aeb2ced52c0ba2fd0d /Modules/sha256module.c
parent6ab8e8298eba1d52debc53d6e6a38d419bb255c0 (diff)
downloadcpython-0fcab4a3ed5e39769609b60d6179c4c801e45985.zip
cpython-0fcab4a3ed5e39769609b60d6179c4c801e45985.tar.gz
cpython-0fcab4a3ed5e39769609b60d6179c4c801e45985.tar.bz2
Issue #9566: use Py_ssize_t instead of int
Diffstat (limited to 'Modules/sha256module.c')
-rw-r--r--Modules/sha256module.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/sha256module.c b/Modules/sha256module.c
index 705b31a..8617210 100644
--- a/Modules/sha256module.c
+++ b/Modules/sha256module.c
@@ -265,9 +265,9 @@ sha224_init(SHAobject *sha_info)
/* update the SHA digest */
static void
-sha_update(SHAobject *sha_info, SHA_BYTE *buffer, int count)
+sha_update(SHAobject *sha_info, SHA_BYTE *buffer, Py_ssize_t count)
{
- int i;
+ Py_ssize_t i;
SHA_INT32 clo;
clo = sha_info->count_lo + ((SHA_INT32) count << 3);