[Python-checkins] cpython (2.7): Issue #13093: Fix _testcapi.unicode_encodedecimal()
victor.stinner
python-checkins at python.org
Tue Nov 29 00:50:42 CET 2011
http://hg.python.org/cpython/rev/3ecddf168f1f
changeset: 73783:3ecddf168f1f
branch: 2.7
parent: 73771:99f5a0475ead
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Tue Nov 29 00:53:09 2011 +0100
summary:
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.
files:
Modules/_testcapimodule.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c
--- a/Modules/_testcapimodule.c
+++ b/Modules/_testcapimodule.c
@@ -1109,7 +1109,7 @@
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;
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list