From: Ilia Alshanetsky Date: Wed, 12 Aug 2009 12:47:19 +0000 (+0000) Subject: Fixed compiler warning X-Git-Tag: php-5.4.0alpha1~191^2~2805 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e5f121ef92bda8ca64b10e76905cd0b4339b8996;p=php Fixed compiler warning --- diff --git a/ext/zip/lib/zip_fread.c b/ext/zip/lib/zip_fread.c index 0a68005ee3..57c5208a6b 100644 --- a/ext/zip/lib/zip_fread.c +++ b/ext/zip/lib/zip_fread.c @@ -95,7 +95,7 @@ zip_fread(struct zip_file *zf, void *outbuf, size_t toread) if (len >= zf->bytes_left || len >= toread) { if (zf->flags & ZIP_ZF_CRC) { zf->crc = crc32(zf->crc, (Bytef *)outbuf, len); - if (zf->flags & ZIP_ZF_EOF == 1) { + if ((zf->flags & ZIP_ZF_EOF) == 1) { if (zf->crc != zf->crc_orig) { _zip_error_set(&zf->error, ZIP_ER_CRC, 0); return -1;