From b220d885711d7107cc53c6632c39d0b714add965 Mon Sep 17 00:00:00 2001 From: Guido Draheim Date: Mon, 22 Dec 2003 12:10:36 +0000 Subject: [PATCH] remove msvc6 warnings about difference of signedness of pointer target types (zip.c) --- zzip/zip.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zzip/zip.c b/zzip/zip.c index 65ac63e..df7d487 100644 --- a/zzip/zip.c +++ b/zzip/zip.c @@ -188,7 +188,7 @@ __zzip_find_disk_trailer(int fd, zzip_off_t filesize, { register unsigned char* mapped; - if (offset <= 0) { return(ZZIP_DIR_EDH_MISSING); } + if (offset <= 0) { return(ZZIP_DIR_EDH_MISSING); } /* trailer cannot be farther away than 64K from fileend */ if (filesize-offset > 64*1024) @@ -218,7 +218,7 @@ __zzip_find_disk_trailer(int fd, zzip_off_t filesize, fd_map = _zzip_mmap(io->fd.sys, fd, mapoff, (zzip_size_t)maplen); if (fd_map == MAP_FAILED) goto non_mmap; - mapped = fd_map; offset = mapoff; /* success */ + mapped = (unsigned char*) fd_map; offset = mapoff; /* success */ HINT3("mapped *%p len=%li", fd_map, (long) maplen); } else { non_mmap: @@ -244,7 +244,7 @@ __zzip_find_disk_trailer(int fd, zzip_off_t filesize, { return(ZZIP_DIR_SEEK); } if (io->fd.read(fd, buf, (zzip_size_t)maplen) < maplen) { return(ZZIP_DIR_READ); } - mapped = buf; /* success */ + mapped = (unsigned char*) buf; /* success */ HINT5("offs=$%lx len=%li filesize=%li pagesize=%i", (long)offset, (long)maplen, (long)filesize, ZZIP_BUFSIZ); } -- 2.40.0