From: Martin v. Löwis Date: Thu, 16 Feb 2006 14:35:38 +0000 (+0000) Subject: Use Py_ssize_t to count the length. X-Git-Tag: v2.5a0~657 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f5adf1eb72c755c3f6183199656f18b12a1cb952;p=python Use Py_ssize_t to count the length. --- diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c index 646a7c1a50..dee8e846a1 100644 --- a/Parser/tokenizer.c +++ b/Parser/tokenizer.c @@ -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);