[syslinux:master] zlib: fix warning in crc32.c
syslinux-bot for H. Peter Anvin
hpa at zytor.com
Sun Jan 10 13:24:05 PST 2010
Commit-ID: 0ca76a5d902632787427cc9c403a780c0c1d4473
Gitweb: http://syslinux.zytor.com/commit/0ca76a5d902632787427cc9c403a780c0c1d4473
Author: H. Peter Anvin <hpa at zytor.com>
AuthorDate: Sun, 10 Jan 2010 13:07:39 -0800
Committer: H. Peter Anvin <hpa at zytor.com>
CommitDate: Sun, 10 Jan 2010 13:07:39 -0800
zlib: fix warning in crc32.c
Fix a signed/unsigned warning in crc32.c.
Signed-off-by: H. Peter Anvin <hpa at zytor.com>
---
com32/lib/zlib/crc32.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/com32/lib/zlib/crc32.c b/com32/lib/zlib/crc32.c
index 447f138..67e6f31 100644
--- a/com32/lib/zlib/crc32.c
+++ b/com32/lib/zlib/crc32.c
@@ -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 */
More information about the Syslinux-commits
mailing list