summaryrefslogtreecommitdiff
path: root/crc32.c
diff options
context:
space:
mode:
Diffstat (limited to 'crc32.c')
-rw-r--r--crc32.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/crc32.c b/crc32.c
index 62b025f..9b1de04 100644
--- a/crc32.c
+++ b/crc32.c
@@ -1,5 +1,5 @@
1/* crc32.c -- compute the CRC-32 of a data stream 1/* crc32.c -- compute the CRC-32 of a data stream
2 * Copyright (C) 1995-2004 Mark Adler 2 * Copyright (C) 1995-2005 Mark Adler
3 * For conditions of distribution and use, see copyright notice in zlib.h 3 * For conditions of distribution and use, see copyright notice in zlib.h
4 * 4 *
5 * Thanks to Rodney Brown <rbrown64@csc.com.au> for his contribution of faster 5 * Thanks to Rodney Brown <rbrown64@csc.com.au> for his contribution of faster
@@ -273,7 +273,7 @@ local unsigned long crc32_little(crc, buf, len)
273 len--; 273 len--;
274 } 274 }
275 275
276 buf4 = (const u4 FAR *)buf; 276 buf4 = (const u4 FAR *)(const void FAR *)buf;
277 while (len >= 32) { 277 while (len >= 32) {
278 DOLIT32; 278 DOLIT32;
279 len -= 32; 279 len -= 32;
@@ -313,7 +313,7 @@ local unsigned long crc32_big(crc, buf, len)
313 len--; 313 len--;
314 } 314 }
315 315
316 buf4 = (const u4 FAR *)buf; 316 buf4 = (const u4 FAR *)(const void FAR *)buf;
317 buf4--; 317 buf4--;
318 while (len >= 32) { 318 while (len >= 32) {
319 DOBIG32; 319 DOBIG32;