]> granicus.if.org Git - php/commitdiff
Fixed compiler warning
authorIlia Alshanetsky <iliaa@php.net>
Wed, 12 Aug 2009 12:47:19 +0000 (12:47 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 12 Aug 2009 12:47:19 +0000 (12:47 +0000)
ext/zip/lib/zip_fread.c

index 0a68005ee332f6f0b5dd8be1f79303f22e5e514d..57c5208a6b4d14ed39bfb18610a8923a1ea63a63 100644 (file)
@@ -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;