commit | ad0a4629beac0600c4c4c3167b0d68be57ca674e | [log] [tgz] |
---|---|---|
author | Martin v. Löwis <martin@v.loewis.de> | Thu Feb 16 14:30:23 2006 +0000 |
committer | Martin v. Löwis <martin@v.loewis.de> | Thu Feb 16 14:30:23 2006 +0000 |
tree | a4aef28fd7dbf93c7dabde51ce88fe1748e29427 | |
parent | 97c65a8068056863215eb3a14024c1e4a8d19b9f [diff] [blame] |
Use Py_ssize_t for counts and sizes.
diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c index 514e7e6..25550e7 100644 --- a/Modules/parsermodule.c +++ b/Modules/parsermodule.c
@@ -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)