Commit 0eda1140 authored by Alok Singhal's avatar Alok Singhal

a bit too overzealous in converting int to Py_ssize_t

parent b5b650cb
...@@ -377,7 +377,7 @@ cdef extern from *: ...@@ -377,7 +377,7 @@ cdef extern from *:
# consumed is not NULL, PyUnicode_DecodeMBCSStateful() will not # consumed is not NULL, PyUnicode_DecodeMBCSStateful() will not
# decode trailing lead byte and the number of bytes that have been # decode trailing lead byte and the number of bytes that have been
# decoded will be stored in consumed. New in version 2.5. # decoded will be stored in consumed. New in version 2.5.
object PyUnicode_DecodeMBCSStateful(char *s, Py_ssize_t size, char *errors, Py_ssize_t *consumed) object PyUnicode_DecodeMBCSStateful(char *s, int size, char *errors, int *consumed)
# Encode the Py_UNICODE buffer of the given size using MBCS and # Encode the Py_UNICODE buffer of the given size using MBCS and
# return a Python string object. Return NULL if an exception was # return a Python string object. Return NULL if an exception was
......
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