]> git.lizzy.rs Git - zlib.git/commitdiff
Explicitly note that the 32-bit check values are 32 bits.
authorMark Adler <madler@alumni.caltech.edu>
Fri, 5 Apr 2019 22:27:47 +0000 (15:27 -0700)
committerMark Adler <madler@alumni.caltech.edu>
Fri, 5 Apr 2019 22:27:47 +0000 (15:27 -0700)
zlib.h

diff --git a/zlib.h b/zlib.h
index d33db136afee0d3292a1b0f0d005cff05931023d..18ce4331bd1c9d60a77a4def3e7ae8ae39496b2b 100644 (file)
--- a/zlib.h
+++ b/zlib.h
@@ -1690,8 +1690,9 @@ ZEXTERN void ZEXPORT gzclearerr OF((gzFile file));
 ZEXTERN uLong ZEXPORT adler32 OF((uLong adler, const Bytef *buf, uInt len));
 /*
      Update a running Adler-32 checksum with the bytes buf[0..len-1] and
-   return the updated checksum.  If buf is Z_NULL, this function returns the
-   required initial value for the checksum.
+   return the updated checksum. An Adler-32 value is in the range of a 32-bit
+   unsigned integer. If buf is Z_NULL, this function returns the required
+   initial value for the checksum.
 
      An Adler-32 checksum is almost as reliable as a CRC-32 but can be computed
    much faster.
@@ -1727,9 +1728,10 @@ ZEXTERN uLong ZEXPORT adler32_combine OF((uLong adler1, uLong adler2,
 ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len));
 /*
      Update a running CRC-32 with the bytes buf[0..len-1] and return the
-   updated CRC-32.  If buf is Z_NULL, this function returns the required
-   initial value for the crc.  Pre- and post-conditioning (one's complement) is
-   performed within this function so it shouldn't be done by the application.
+   updated CRC-32. A CRC-32 value is in the range of a 32-bit unsigned integer.
+   If buf is Z_NULL, this function returns the required initial value for the
+   crc. Pre- and post-conditioning (one's complement) is performed within this
+   function so it shouldn't be done by the application.
 
    Usage example: