]> granicus.if.org Git - php/commitdiff
- kill a couple of (release build) MS compiler warnings
authorSteph Fox <sfox@php.net>
Thu, 24 Apr 2008 16:59:23 +0000 (16:59 +0000)
committerSteph Fox <sfox@php.net>
Thu, 24 Apr 2008 16:59:23 +0000 (16:59 +0000)
ext/phar/phar.c
ext/phar/tar.c

index 195fc7ab0c7b73410fc84d101de2d412005f83ee..7b285773c4b8e6d9bdbb9b52eadd5abba222d8fe 100644 (file)
@@ -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) {
index 89207f23578123e033cae2b1df741b532c349670..7c804d5d627d81123707e69d3b782421d54cad70 100644 (file)
@@ -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);
                                }