From 990d47f74d002d7498576c6552192560cb92734e Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Tue, 19 Sep 2023 07:09:07 +0000 Subject: Fix gcc warning --- generic/tclZipfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generic/tclZipfs.c b/generic/tclZipfs.c index c31a92d..02b0f72 100644 --- a/generic/tclZipfs.c +++ b/generic/tclZipfs.c @@ -1277,7 +1277,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 */ -- cgit v0.12