From 452728f8dbedda975adb3d72e36fbc0e09b3f686 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Thu, 16 Feb 2006 14:30:23 +0000 Subject: Use Py_ssize_t for counts and sizes. --- Modules/parsermodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Modules/parsermodule.c') diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c index 514e7e66bf..25550e7119 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) -- cgit v1.2.1