diff options
author | Hans Kristian Rosbach <hk-git@circlestorm.org> | 2020-08-25 15:47:25 +0200 |
---|---|---|
committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2020-08-27 19:20:38 +0200 |
commit | 3a26093bafc2a842472916dc67b3d91818e819fd (patch) | |
tree | 3eb3cc337f8fa629bea2b233640ee315b2d23e84 /deflate_quick.c | |
parent | 0a7acaab6e7c3ad80069837b6a3e01dd03f0f9b8 (diff) |
Fix some of the old and new conversion warnings in deflate*
Diffstat (limited to 'deflate_quick.c')
-rw-r--r-- | deflate_quick.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/deflate_quick.c b/deflate_quick.c index fb2e138..c8fb226 100644 --- a/deflate_quick.c +++ b/deflate_quick.c @@ -28,20 +28,20 @@ extern const ct_data static_dtree[D_CODES]; #define QUICK_START_BLOCK(s, last) { \ zng_tr_emit_tree(s, STATIC_TREES, last); \ - s->block_open = 1 + last; \ - s->block_start = s->strstart; \ + s->block_open = 1 + (int)last; \ + s->block_start = (int)s->strstart; \ } #define QUICK_END_BLOCK(s, last) { \ if (s->block_open) { \ zng_tr_emit_end_block(s, static_ltree, last); \ s->block_open = 0; \ - s->block_start = s->strstart; \ + s->block_start = (int)s->strstart; \ flush_pending(s->strm); \ if (s->strm->avail_out == 0) \ return (last) ? finish_started : need_more; \ } \ -} +} ZLIB_INTERNAL block_state deflate_quick(deflate_state *s, int flush) { Pos hash_head; |