]> granicus.if.org Git - php/commitdiff
MFB: cosmetics: fix warning (only affects suncc)
authorGreg Beaver <cellog@php.net>
Sat, 21 Feb 2009 02:34:01 +0000 (02:34 +0000)
committerGreg Beaver <cellog@php.net>
Sat, 21 Feb 2009 02:34:01 +0000 (02:34 +0000)
ext/phar/zip.c

index 30c25149edde6a3ca93f738864bee8ae0fdf7606..71a35b11d6952af6dcbe91b6191666ac85884b1e 100644 (file)
@@ -728,7 +728,7 @@ static int phar_zip_changed_apply(void *data, void *arg TSRMLS_DC) /* {{{ */
        PHAR_SET_16(perms.size, sizeof(perms) - 4);
        PHAR_SET_16(perms.perms, entry->flags & PHAR_ENT_PERM_MASK);
        {
-               php_uint32 crc = ~0;
+               php_uint32 crc = (php_uint32) ~0;
                CRC32(crc, perms.perms[0]);
                CRC32(crc, perms.perms[1]);
                PHAR_SET_32(perms.crc32, ~crc);