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

index dd90aad0fd85044eea1641b6641d03e13f56a2e6..921b61d0ec01baba3fade6189c72536ef84fdb23 100644 (file)
@@ -727,7 +727,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);