From 9a054520852368c0a0d179bedfce60776587a645 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Sun, 7 Feb 2010 16:51:28 -0800 Subject: make flate crc32 work when ulong is 64 bits R=, rsc CC= http://codereview.appspot.com/203061 --- src/libflate/crc.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/libflate/crc.c') diff --git a/src/libflate/crc.c b/src/libflate/crc.c index 4da78f6c..8085c23e 100644 --- a/src/libflate/crc.c +++ b/src/libflate/crc.c @@ -2,11 +2,11 @@ #include #include -ulong* -mkcrctab(ulong poly) +uint32* +mkcrctab(uint32 poly) { - ulong *crctab; - ulong crc; + uint32 *crctab; + uint32 crc; int i, j; crctab = malloc(256 * sizeof(ulong)); @@ -26,8 +26,8 @@ mkcrctab(ulong poly) return crctab; } -ulong -blockcrc(ulong *crctab, ulong crc, void *vbuf, int n) +uint32 +blockcrc(uint32 *crctab, uint32 crc, void *vbuf, int n) { uchar *buf, *ebuf; -- cgit v1.2.3