From b39ec4e2dbf114a1cf67b04f449b2d9c5c2fc2c9 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Tue, 10 Jul 2007 22:23:35 +0000 Subject: [PATCH] Len is still an unsigned long, not a uint32_t --- src/hash/crc32.c | 4 ++-- src/hash/crc32.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hash/crc32.c b/src/hash/crc32.c index 599dd146b9..c4d9335758 100644 --- a/src/hash/crc32.c +++ b/src/hash/crc32.c @@ -78,7 +78,7 @@ int32_t crc32tbl[]={ /* CRC polynomial 0xedb88320 */ /* Pass len of 0 to auto-determine ASCIIZ string length */ /* or non-zero for arbitrary binary data */ /****************************************************************************/ -uint32_t crc32i(uint32_t crc, char *buf, uint32_t len) +uint32_t crc32i(uint32_t crc, char *buf, unsigned long len) { uint32_t l; @@ -89,7 +89,7 @@ uint32_t crc32i(uint32_t crc, char *buf, uint32_t len) return(~crc); } -uint32_t fcrc32(FILE* fp, uint32_t len) +uint32_t fcrc32(FILE* fp, unsigned long len) { int ch; uint32_t l,crc=0xffffffff; diff --git a/src/hash/crc32.h b/src/hash/crc32.h index 083a1193e7..813899424b 100644 --- a/src/hash/crc32.h +++ b/src/hash/crc32.h @@ -47,8 +47,8 @@ extern "C" { extern int32_t crc32tbl[]; -uint32_t crc32i(uint32_t crc, char* buf, uint32_t len); -uint32_t fcrc32(FILE* fp, uint32_t len); +uint32_t crc32i(uint32_t crc, char* buf, unsigned long len); +uint32_t fcrc32(FILE* fp, unsigned long len); #ifdef __cplusplus } -- GitLab