diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:24:43 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:24:43 -0700 |
commit | 6b8233bfe00e79134cb1b84fc49d4f750a797f79 (patch) | |
tree | ca2b03b0169568681dc3d9c823e9f0bc4417d6b5 /crc32.c | |
parent | 0484693e1723bbab791c56f95597bd7dbe867d03 (diff) | |
download | zlib-6b8233bfe00e79134cb1b84fc49d4f750a797f79.tar.gz zlib-6b8233bfe00e79134cb1b84fc49d4f750a797f79.tar.bz2 zlib-6b8233bfe00e79134cb1b84fc49d4f750a797f79.zip |
zlib 1.2.2.3v1.2.2.3
Diffstat (limited to 'crc32.c')
-rw-r--r-- | crc32.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |