commit | f271c272a2a98081b787dcd40a973b641fe14ca4 | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Mon Dec 30 22:44:03 2002 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Mon Dec 30 22:44:03 2002 +0000 |
tree | d63820bc9d30391bdf0a47438ed9f20a107b9221 | |
parent | 1ea93f2b1d0a165b5f9306c7cb351c595712199e [diff] [blame] |
Squashed compiler wng from MSVC6.
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 @@ 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;