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) {
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);
}