summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-11-28 23:53:09 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-11-28 23:53:09 (GMT)
commit9f915d9c20abe29ce81329bf84ce15b7c22153c2 (patch)
tree7c17a77d17080861ba69d9deacb4ac79434a4fc9
parent27bc4d07cc22740d46b8fe8dc0497a85d7a6d15e (diff)
downloadcpython-9f915d9c20abe29ce81329bf84ce15b7c22153c2.zip
cpython-9f915d9c20abe29ce81329bf84ce15b7c22153c2.tar.gz
cpython-9f915d9c20abe29ce81329bf84ce15b7c22153c2.tar.bz2
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.
-rw-r--r--Modules/_testcapimodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c
index bb1cc83..f1968e2 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;