diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-01-08 01:03:36 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-01-08 01:03:36 (GMT) |
commit | d39d861a36bf2ff7ccbb8248fa7fb81517923877 (patch) | |
tree | dabf721d5b7b7686d0767f82bf702324f324fbdf /Modules | |
parent | 2841af4cecb9a9ae5a16d8d2492dc10832707965 (diff) | |
download | cpython-d39d861a36bf2ff7ccbb8248fa7fb81517923877.zip cpython-d39d861a36bf2ff7ccbb8248fa7fb81517923877.tar.gz cpython-d39d861a36bf2ff7ccbb8248fa7fb81517923877.tar.bz2 |
Fix icc warnings: strlen() returns size_t
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/zipimport.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Modules/zipimport.c b/Modules/zipimport.c index 183692c..b2b2e3b 100644 --- a/Modules/zipimport.c +++ b/Modules/zipimport.c @@ -62,7 +62,7 @@ static int zipimporter_init(ZipImporter *self, PyObject *args, PyObject *kwds) { char *path, *p, *prefix, buf[MAXPATHLEN+2]; - int len; + size_t len; if (!_PyArg_NoKeywords("zipimporter()", kwds)) return -1; @@ -231,7 +231,7 @@ get_subname(char *fullname) static int make_filename(char *prefix, char *name, char *path) { - int len; + size_t len; char *p; len = strlen(prefix); @@ -249,7 +249,7 @@ make_filename(char *prefix, char *name, char *path) *p = SEP; } len += strlen(name); - return len; + return (int)len; } enum zi_module_info { @@ -659,7 +659,8 @@ read_directory(char *archive) FILE *fp; long compress, crc, data_size, file_size, file_offset, date, time; long header_offset, name_size, header_size, header_position; - long i, l, length, count; + long i, l, count; + size_t length; char path[MAXPATHLEN + 5]; char name[MAXPATHLEN + 5]; char *p, endof_central_dir[22]; |