diff Modules/parsermodule.c @ 36518:9f3f87e920a6 legacy-trunk

Use Py_ssize_t for counts and sizes.
author Martin v. Löwis <martin@v.loewis.de>
date Thu, 16 Feb 2006 14:30:23 +0000
parents 7fdc639bc5b4
children 2ddea5535f08
line wrap: on
line diff
--- a/Modules/parsermodule.c	Thu Feb 16 14:24:38 2006 +0000
+++ b/Modules/parsermodule.c	Thu Feb 16 14:30:23 2006 +0000
@@ -782,7 +782,7 @@
                 res = NULL;
             }
             if (res && encoding) {
-                int len;
+                Py_ssize_t len;
                 len = PyString_GET_SIZE(encoding) + 1;
                 res->n_str = (char *)PyMem_MALLOC(len);
                 if (res->n_str != NULL)