summaryrefslogtreecommitdiffstats
path: root/Modules/zipimport.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/zipimport.c')
-rw-r--r--Modules/zipimport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/zipimport.c b/Modules/zipimport.c
index be141d0..373255d 100644
--- a/Modules/zipimport.c
+++ b/Modules/zipimport.c
@@ -408,7 +408,7 @@ zipimporter_get_data(PyObject *obj, PyObject *args)
char *p, buf[MAXPATHLEN + 1];
#endif
PyObject *toc_entry;
- int len;
+ Py_ssize_t len;
if (!PyArg_ParseTuple(args, "s:zipimporter.get_data", &path))
return NULL;
@@ -910,7 +910,7 @@ unmarshal_code(char *pathname, PyObject *data, time_t mtime)
{
PyObject *code;
char *buf = PyString_AsString(data);
- int size = PyString_Size(data);
+ Py_ssize_t size = PyString_Size(data);
if (size <= 9) {
PyErr_SetString(ZipImportError,