mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Use Py_ssize_t to count the length.
This commit is contained in:
parent
eb079f1c25
commit
f5adf1eb72
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue