Issue #13093: Fix _testcapi.unicode_encodedecimal()

_testcapimodule.c is not "ssize_t" safe in Python 2.7: the length argument type
is int, not Py_ssize_t.
This commit is contained in:
Victor Stinner 2011-11-29 00:53:09 +01:00
parent 27bc4d07cc
commit 9f915d9c20
1 changed files with 1 additions and 1 deletions

View File

@ -1109,7 +1109,7 @@ static PyObject *
unicode_encodedecimal(PyObject *self, PyObject *args)
{
Py_UNICODE *unicode;
Py_ssize_t length;
int length;
char *errors = NULL;
PyObject *decimal;
Py_ssize_t decimal_length, new_length;