summaryrefslogtreecommitdiffstats
path: root/Modules/zipimport.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/zipimport.c')
-rw-r--r--Modules/zipimport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/zipimport.c b/Modules/zipimport.c
index ec5a529..863ce42 100644
--- a/Modules/zipimport.c
+++ b/Modules/zipimport.c
@@ -412,7 +412,7 @@ zipimporter_get_data(PyObject *obj, PyObject *args)
path = buf;
#endif
len = PyString_Size(self->archive);
- if (len < strlen(path) &&
+ if ((size_t)len < strlen(path) &&
strncmp(path, PyString_AsString(self->archive), len) == 0 &&
path[len] == SEP) {
path = path + len + 1;