summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2006-03-01 23:10:05 (GMT)
committerThomas Wouters <thomas@python.org>2006-03-01 23:10:05 (GMT)
commit7087f78dbe4f9c69ae040c142c8a04fedf010047 (patch)
tree52d215bc7c2dd2b1470bfeec470e1b9fa029a43d /Modules
parent5ddfe41e84209f0665a01b5d813a6e80c4c0b88f (diff)
downloadcpython-7087f78dbe4f9c69ae040c142c8a04fedf010047.zip
cpython-7087f78dbe4f9c69ae040c142c8a04fedf010047.tar.gz
cpython-7087f78dbe4f9c69ae040c142c8a04fedf010047.tar.bz2
Use Py_ssize_t for arithmetic on Py_ssize_t's, instead of unsigned ints.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/binascii.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/binascii.c b/Modules/binascii.c
index f284b6b..4623b7c 100644
--- a/Modules/binascii.c
+++ b/Modules/binascii.c
@@ -1028,7 +1028,7 @@ PyDoc_STRVAR(doc_a2b_qp, "Decode a string of qp-encoded data");
static PyObject*
binascii_a2b_qp(PyObject *self, PyObject *args, PyObject *kwargs)
{
- unsigned int in, out;
+ Py_ssize_t in, out;
char ch;
unsigned char *data, *odata;
Py_ssize_t datalen = 0;
@@ -1129,7 +1129,7 @@ both encoded. When quotetabs is set, space and tabs are encoded.");
static PyObject*
binascii_b2a_qp (PyObject *self, PyObject *args, PyObject *kwargs)
{
- unsigned int in, out;
+ Py_ssize_t in, out;
unsigned char *data, *odata;
Py_ssize_t datalen = 0, odatalen = 0;
PyObject *rv;