diff options
author | Hans Kristian Rosbach <hk-git@circlestorm.org> | 2020-08-25 16:36:28 +0200 |
---|---|---|
committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2020-08-27 19:20:38 +0200 |
commit | 6264b5a58d7470333a64d69b247a2bd561bbbe68 (patch) | |
tree | c5f5e085460f3458ff572fb3e6fd5b8c47676ce8 /deflate.h | |
parent | 3a26093bafc2a842472916dc67b3d91818e819fd (diff) |
Fix more conversion warnings related to s->bi_valid, stored_len and misc.
Diffstat (limited to 'deflate.h')
-rw-r--r-- | deflate.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -260,7 +260,7 @@ typedef struct internal_state { /* Output buffer. bits are inserted starting at the bottom (least * significant bits). */ - int bi_valid; + int32_t bi_valid; /* Number of valid bits in bi_buf. All bits above the last valid bit * are always zero. */ @@ -390,10 +390,10 @@ void ZLIB_INTERNAL slide_hash_c(deflate_state *s); /* in trees.c */ void ZLIB_INTERNAL zng_tr_init(deflate_state *s); -void ZLIB_INTERNAL zng_tr_flush_block(deflate_state *s, char *buf, unsigned long stored_len, int last); +void ZLIB_INTERNAL zng_tr_flush_block(deflate_state *s, char *buf, uint32_t stored_len, int last); void ZLIB_INTERNAL zng_tr_flush_bits(deflate_state *s); void ZLIB_INTERNAL zng_tr_align(deflate_state *s); -void ZLIB_INTERNAL zng_tr_stored_block(deflate_state *s, char *buf, unsigned long stored_len, int last); +void ZLIB_INTERNAL zng_tr_stored_block(deflate_state *s, char *buf, uint32_t stored_len, int last); unsigned ZLIB_INTERNAL bi_reverse(unsigned code, int len); void ZLIB_INTERNAL flush_pending(PREFIX3(streamp) strm); |