summaryrefslogtreecommitdiffstats
path: root/Modules/sha1module.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/sha1module.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/sha1module.c')
-rw-r--r--Modules/sha1module.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/sha1module.c b/Modules/sha1module.c
index b660042..b25bd44 100644
--- a/Modules/sha1module.c
+++ b/Modules/sha1module.c
@@ -203,9 +203,9 @@ void sha1_init(struct sha1_state *sha1)
@param inlen The length of the data (octets)
*/
void sha1_process(struct sha1_state *sha1,
- const unsigned char *in, unsigned long inlen)
+ const unsigned char *in, Py_ssize_t inlen)
{
- unsigned long n;
+ Py_ssize_t n;
assert(sha1 != NULL);
assert(in != NULL);