aboutsummaryrefslogtreecommitdiff
path: root/zlib.h
diff options
context:
space:
mode:
authorMark Adler <git@madler.net>2026-02-09 07:06:18 -0800
committerMark Adler <git@madler.net>2026-02-09 16:34:03 -0800
commit81c41dd5c5ddfff868d8d394fc21fdfa4e55de92 (patch)
treed1682dacb5b31c0d4d48d05881d1b35f9a48fa26 /zlib.h
parentfd2fe58bf43f451b04402f38d8787e4100ef48bf (diff)
downloadzlib-81c41dd5c5ddfff868d8d394fc21fdfa4e55de92.tar.gz
zlib-81c41dd5c5ddfff868d8d394fc21fdfa4e55de92.tar.bz2
zlib-81c41dd5c5ddfff868d8d394fc21fdfa4e55de92.zip
Fix the usage of types in deflate.c for when an int is 16 bits.
Also clean up conversion warnings.
Diffstat (limited to 'zlib.h')
-rw-r--r--zlib.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/zlib.h b/zlib.h
index afa3d5a9..8ffc8de8 100644
--- a/zlib.h
+++ b/zlib.h
@@ -795,7 +795,10 @@ ZEXTERN int ZEXPORT deflatePending(z_streamp strm,
795 or bits are Z_NULL, then those values are not set. 795 or bits are Z_NULL, then those values are not set.
796 796
797 deflatePending returns Z_OK if success, or Z_STREAM_ERROR if the source 797 deflatePending returns Z_OK if success, or Z_STREAM_ERROR if the source
798 stream state was inconsistent. 798 stream state was inconsistent. If an int is 16 bits and memLevel is 9, then
799 it is possible for the number of pending bytes to not fit in an unsigned. In
800 that case Z_BUF_ERROR is returned and *pending is set to the maximum value
801 of an unsigned.
799 */ 802 */
800 803
801ZEXTERN int ZEXPORT deflateUsed(z_streamp strm, 804ZEXTERN int ZEXPORT deflateUsed(z_streamp strm,