From: Victor Stinner Date: Mon, 28 Nov 2011 23:53:09 +0000 (+0100) Subject: Issue #13093: Fix _testcapi.unicode_encodedecimal() X-Git-Tag: v2.7.3rc1~271 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9f915d9c20abe29ce81329bf84ce15b7c22153c2;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index bb1cc83830ec..f1968e2a70cb 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -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;