iliaa                                    Wed, 12 Aug 2009 12:47:19 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=287155

Log:
Fixed compiler warning

Changed paths:
    U   php/php-src/trunk/ext/zip/lib/zip_fread.c

Modified: php/php-src/trunk/ext/zip/lib/zip_fread.c
===================================================================
--- php/php-src/trunk/ext/zip/lib/zip_fread.c   2009-08-12 12:18:23 UTC (rev 
287154)
+++ php/php-src/trunk/ext/zip/lib/zip_fread.c   2009-08-12 12:47:19 UTC (rev 
287155)
@@ -95,7 +95,7 @@
            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;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to