Use Py_ssize_t to count the length.

This commit is contained in:
Martin v. Löwis 2006-02-16 14:35:38 +00:00
parent eb079f1c25
commit f5adf1eb72
1 changed files with 1 additions and 1 deletions

View File

@ -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);