mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Use Py_ssize_t for arithmetic on Py_ssize_t's, instead of unsigned ints.
This commit is contained in:
parent
5ddfe41e84
commit
7087f78dbe
1 changed files with 2 additions and 2 deletions
|
@ -1028,7 +1028,7 @@ PyDoc_STRVAR(doc_a2b_qp, "Decode a string of qp-encoded data");
|
||||||
static PyObject*
|
static PyObject*
|
||||||
binascii_a2b_qp(PyObject *self, PyObject *args, PyObject *kwargs)
|
binascii_a2b_qp(PyObject *self, PyObject *args, PyObject *kwargs)
|
||||||
{
|
{
|
||||||
unsigned int in, out;
|
Py_ssize_t in, out;
|
||||||
char ch;
|
char ch;
|
||||||
unsigned char *data, *odata;
|
unsigned char *data, *odata;
|
||||||
Py_ssize_t datalen = 0;
|
Py_ssize_t datalen = 0;
|
||||||
|
@ -1129,7 +1129,7 @@ both encoded. When quotetabs is set, space and tabs are encoded.");
|
||||||
static PyObject*
|
static PyObject*
|
||||||
binascii_b2a_qp (PyObject *self, PyObject *args, PyObject *kwargs)
|
binascii_b2a_qp (PyObject *self, PyObject *args, PyObject *kwargs)
|
||||||
{
|
{
|
||||||
unsigned int in, out;
|
Py_ssize_t in, out;
|
||||||
unsigned char *data, *odata;
|
unsigned char *data, *odata;
|
||||||
Py_ssize_t datalen = 0, odatalen = 0;
|
Py_ssize_t datalen = 0, odatalen = 0;
|
||||||
PyObject *rv;
|
PyObject *rv;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue