diff options
Diffstat (limited to '')
| -rw-r--r-- | adler32.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -5,9 +5,9 @@ | |||
| 5 | 5 | ||
| 6 | /* $Id: adler32.c,v 1.6 1995/05/03 17:27:08 jloup Exp $ */ | 6 | /* $Id: adler32.c,v 1.6 1995/05/03 17:27:08 jloup Exp $ */ |
| 7 | 7 | ||
| 8 | #include "zutil.h" | 8 | #include "zlib.h" |
| 9 | 9 | ||
| 10 | #define BASE 65521 /* largest prime smaller than 65536 */ | 10 | #define BASE 65521L /* largest prime smaller than 65536 */ |
| 11 | #define NMAX 5552 | 11 | #define NMAX 5552 |
| 12 | /* NMAX is the largest n such that 255n(n+1)/2 + (n+1)(BASE-1) <= 2^32-1 */ | 12 | /* NMAX is the largest n such that 255n(n+1)/2 + (n+1)(BASE-1) <= 2^32-1 */ |
| 13 | 13 | ||
| @@ -20,7 +20,7 @@ | |||
| 20 | /* ========================================================================= */ | 20 | /* ========================================================================= */ |
| 21 | uLong adler32(adler, buf, len) | 21 | uLong adler32(adler, buf, len) |
| 22 | uLong adler; | 22 | uLong adler; |
| 23 | Byte *buf; | 23 | Bytef *buf; |
| 24 | uInt len; | 24 | uInt len; |
| 25 | { | 25 | { |
| 26 | unsigned long s1 = adler & 0xffff; | 26 | unsigned long s1 = adler & 0xffff; |
