zlib: fix warning in crc32.c
authorH. Peter Anvin <hpa@zytor.com>
Sun, 10 Jan 2010 21:07:39 +0000 (13:07 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Sun, 10 Jan 2010 21:07:39 +0000 (13:07 -0800)
Fix a signed/unsigned warning in crc32.c.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
com32/lib/zlib/crc32.c

index 447f138..67e6f31 100644 (file)
@@ -100,7 +100,7 @@ local void make_crc_table()
 
     /* make exclusive-or pattern from polynomial (0xedb88320UL) */
     poly = 0UL;
-    for (n = 0; n < sizeof(p)/sizeof(unsigned char); n++)
+    for (n = 0; n < (int)(sizeof(p)/sizeof(unsigned char)); n++)
         poly |= 1UL << (31 - p[n]);
 
     /* generate a crc for every 8-bit value */