diff options
Diffstat (limited to 'main/zlib/zcrc32.c')
-rw-r--r-- | main/zlib/zcrc32.c | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/main/zlib/zcrc32.c b/main/zlib/zcrc32.c index 55ba233..2b3a185 100644 --- a/main/zlib/zcrc32.c +++ b/main/zlib/zcrc32.c @@ -1,6 +1,6 @@ /* crc32.c -- compute the CRC-32 of a data stream * Copyright (C) 1995-1998 Mark Adler - * For conditions of distribution and use, see copyright notice in zlib.h + * For conditions of distribution and use, see copyright notice in zlib.h */ #include "zlib.h" @@ -19,15 +19,16 @@ uLong crc; const Bytef *buf; uInt len; { - if (buf == Z_NULL) - return 0L; - crc = crc ^ 0xffffffffL; - while (len >= 8) { - DO8(buf); - len -= 8; - } - if (len) do { - DO1(buf); - } while (--len); - return crc ^ 0xffffffffL; + if(buf == Z_NULL) { + return 0L; + } + crc = crc ^ 0xffffffffL; + while(len >= 8) { + DO8(buf); + len -= 8; + } + if(len) do { + DO1(buf); + } while(--len); + return crc ^ 0xffffffffL; } |