diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-02-16 14:30:23 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-02-16 14:30:23 (GMT) |
commit | ad0a4629beac0600c4c4c3167b0d68be57ca674e (patch) | |
tree | a4aef28fd7dbf93c7dabde51ce88fe1748e29427 /Modules/parsermodule.c | |
parent | 97c65a8068056863215eb3a14024c1e4a8d19b9f (diff) | |
download | cpython-ad0a4629beac0600c4c4c3167b0d68be57ca674e.zip cpython-ad0a4629beac0600c4c4c3167b0d68be57ca674e.tar.gz cpython-ad0a4629beac0600c4c4c3167b0d68be57ca674e.tar.bz2 |
Use Py_ssize_t for counts and sizes.
Diffstat (limited to 'Modules/parsermodule.c')
-rw-r--r-- | Modules/parsermodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ build_node_tree(PyObject *tuple) 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) |