Commit e035b907 authored by Martin v. Löwis's avatar Martin v. Löwis

Use Py_ssize_t to count the length.

parent 4b3354f9
...@@ -370,7 +370,7 @@ fp_readl(char *s, int size, struct tok_state *tok) ...@@ -370,7 +370,7 @@ fp_readl(char *s, int size, struct tok_state *tok)
PyObject* utf8 = NULL; PyObject* utf8 = NULL;
PyObject* buf = tok->decoding_buffer; PyObject* buf = tok->decoding_buffer;
char *str; char *str;
int utf8len; Py_ssize_t utf8len;
/* Ask for one less byte so we can terminate it */ /* Ask for one less byte so we can terminate it */
assert(size > 0); assert(size > 0);
......
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