summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cython/Includes/cpython/unicode.pxd3
1 files changed, 2 insertions, 1 deletions
diff --git a/Cython/Includes/cpython/unicode.pxd b/Cython/Includes/cpython/unicode.pxd
index 97452c62d..350fdf9a4 100644
--- a/Cython/Includes/cpython/unicode.pxd
+++ b/Cython/Includes/cpython/unicode.pxd
@@ -377,7 +377,8 @@ cdef extern from *:
# consumed is not NULL, PyUnicode_DecodeMBCSStateful() will not
# decode trailing lead byte and the number of bytes that have been
# decoded will be stored in consumed. New in version 2.5.
- object PyUnicode_DecodeMBCSStateful(char *s, int size, char *errors, int *consumed)
+ # NOTE: Python 2.x uses 'int' values for 'size' and 'consumed' (changed in 3.0)
+ object PyUnicode_DecodeMBCSStateful(char *s, Py_ssize_t size, char *errors, Py_ssize_t *consumed)
# Encode the Py_UNICODE buffer of the given size using MBCS and
# return a Python string object. Return NULL if an exception was