Commit 5a4efedc authored by Victor Stinner's avatar Victor Stinner

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.
parent 1f0900dc
...@@ -1109,7 +1109,7 @@ static PyObject * ...@@ -1109,7 +1109,7 @@ static PyObject *
unicode_encodedecimal(PyObject *self, PyObject *args) unicode_encodedecimal(PyObject *self, PyObject *args)
{ {
Py_UNICODE *unicode; Py_UNICODE *unicode;
Py_ssize_t length; int length;
char *errors = NULL; char *errors = NULL;
PyObject *decimal; PyObject *decimal;
Py_ssize_t decimal_length, new_length; Py_ssize_t decimal_length, new_length;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment