From 21584ed0295cb0e12569aa4af1214d341e787374 Mon Sep 17 00:00:00 2001 From: Steph Fox Date: Thu, 24 Apr 2008 16:59:23 +0000 Subject: [PATCH] - kill a couple of (release build) MS compiler warnings --- ext/phar/phar.c | 2 +- ext/phar/tar.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/phar/phar.c b/ext/phar/phar.c index 195fc7ab0c..7b285773c4 100644 --- a/ext/phar/phar.c +++ b/ext/phar/phar.c @@ -1562,7 +1562,7 @@ int phar_detect_phar_fname_ext(const char *filename, int check_length, const cha if (keylen <= (uint) filename_len && !memcmp(key, filename, keylen - 1)) { /* found plain map, so we grab the extension, if any */ - if (is_complete && keylen != filename_len + 1) { + if (is_complete && keylen != (uint)filename_len + 1) { continue; } if (for_create == 1) { diff --git a/ext/phar/tar.c b/ext/phar/tar.c index 89207f2357..7c804d5d62 100644 --- a/ext/phar/tar.c +++ b/ext/phar/tar.c @@ -303,7 +303,7 @@ int phar_open_tarfile(php_stream* fp, char *fname, int fname_len, char *alias, i if (((hdr->typeflag == 0) || (hdr->typeflag == TAR_FILE)) && size > 0) { /* this is not good enough - seek succeeds even on truncated tars */ php_stream_seek(fp, size, SEEK_CUR); - if (php_stream_tell(fp) > totalsize) { + if ((uint)php_stream_tell(fp) > totalsize) { if (error) { spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); } -- 2.40.0