projects
/
platform
/
upstream
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e15e312
)
zlib: fix warning in crc32.c
author
H. Peter Anvin
<hpa@zytor.com>
Sun, 10 Jan 2010 21:07:39 +0000
(13:07 -0800)
committer
H. 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
patch
|
blob
|
history
diff --git
a/com32/lib/zlib/crc32.c
b/com32/lib/zlib/crc32.c
index
447f138
..
67e6f31
100644
(file)
--- 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 */