mirror of https://github.com/python/cpython
Use Py_ssize_t to count the length.
This commit is contained in:
parent
eb079f1c25
commit
f5adf1eb72
|
@ -370,7 +370,7 @@ fp_readl(char *s, int size, struct tok_state *tok)
|
|||
PyObject* utf8 = NULL;
|
||||
PyObject* buf = tok->decoding_buffer;
|
||||
char *str;
|
||||
int utf8len;
|
||||
Py_ssize_t utf8len;
|
||||
|
||||
/* Ask for one less byte so we can terminate it */
|
||||
assert(size > 0);
|
||||
|
|
Loading…
Reference in New Issue