]> granicus.if.org Git - zziplib/commitdiff
add missing parenthesis as required for ZZIP_ALLOW_MODULO_ENTRIES.
authorGuido Draheim <guidod@gmx.de>
Thu, 24 Sep 2009 21:33:00 +0000 (21:33 +0000)
committerGuido Draheim <guidod@gmx.de>
Thu, 24 Sep 2009 21:33:00 +0000 (21:33 +0000)
ChangeLog
zzip/zip.c

index b33b6ebb443bff41a9848479de5317169be8e6ec..e0e9d8be3b1bebe238411ba76351ee348e4d51b1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2009-09-24  guidod  <guidod@gmx.de>
 
+       * zzip/zip.c (__zzip_parse_root_directory): add parenthesis to fix
+               ZZIP_ALLOW_MODULO_ENTRIES (as reported by Tulipánt Gergely)
        * zzip/fetch.h: add MSVC defines for x86/x64 that allows direct access
 
 2009-08-23  guidod  <guidod@gmx.de>
index 0a400cd47d84dad31f43865bc4bbf0f0c51d223f..07a2e389a0c42c7d41aa65ced661742a4c9f899a 100644 (file)
@@ -561,7 +561,7 @@ __zzip_parse_root_directory(int fd,
 #  ifndef ZZIP_ALLOW_MODULO_ENTRIES
     return (entries != zz_entries ? ZZIP_CORRUPTED : 0);
 #  else
-    return (entries & (unsigned)0xFFFF) != zz_entries ? ZZIP_CORRUPTED : 0);
+    return ((entries & (unsigned)0xFFFF) != zz_entries ? ZZIP_CORRUPTED : 0);
 #  endif
 }