diff options
Diffstat (limited to 'generic/tclZipfs.c')
-rw-r--r-- | generic/tclZipfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclZipfs.c b/generic/tclZipfs.c index a9d263d..facc968 100644 --- a/generic/tclZipfs.c +++ b/generic/tclZipfs.c @@ -1262,7 +1262,7 @@ ZipFSFindTOC( * (2) cdirZipOffset + cdirSize <= eocdDataOffset. Else the CD will be overlapping * the EOCD. Note this automatically means cdirZipOffset+cdirSize < zf->length. */ - if (!(cdirZipOffset <= eocdDataOffset && + if (!(cdirZipOffset <= (size_t)eocdDataOffset && cdirSize <= eocdDataOffset - cdirZipOffset)) { if (!needZip) { /* Simply point to end od data */ @@ -1544,7 +1544,7 @@ ZipMapArchive( */ zf->length = lseek(fd, 0, SEEK_END); - if ((off_t)zf->length == (off_t)-1) { + if (zf->length == (size_t)-1) { ZIPFS_POSIX_ERROR(interp, "failed to retrieve file size"); return TCL_ERROR; } |