]> granicus.if.org Git - python/commitdiff
Use Py_ssize_t to count the length.
authorMartin v. Löwis <martin@v.loewis.de>
Thu, 16 Feb 2006 14:35:38 +0000 (14:35 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Thu, 16 Feb 2006 14:35:38 +0000 (14:35 +0000)
Parser/tokenizer.c

index 646a7c1a505087c39d906482106da1e03196f3c1..dee8e846a19484c4284f79a1d56c59f5a6244f74 100644 (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);