From f271c272a2a98081b787dcd40a973b641fe14ca4 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Mon, 30 Dec 2002 22:44:03 +0000 Subject: [PATCH] Squashed compiler wng from MSVC6. --- Modules/zipimport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/zipimport.c b/Modules/zipimport.c index ec5a529e3e..863ce42069 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; -- 2.40.0