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)