From 9f915d9c20abe29ce81329bf84ce15b7c22153c2 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 29 Nov 2011 00:53:09 +0100 Subject: [PATCH] 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. --- Modules/_testcapimodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index bb1cc83830e..f1968e2a70c 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;