summaryrefslogtreecommitdiff
path: root/deflate_p.h
diff options
context:
space:
mode:
authorHans Kristian Rosbach <hk-git@circlestorm.org>2020-08-25 15:47:25 +0200
committerHans Kristian Rosbach <hk-github@circlestorm.org>2020-08-27 19:20:38 +0200
commit3a26093bafc2a842472916dc67b3d91818e819fd (patch)
tree3eb3cc337f8fa629bea2b233640ee315b2d23e84 /deflate_p.h
parent0a7acaab6e7c3ad80069837b6a3e01dd03f0f9b8 (diff)
Fix some of the old and new conversion warnings in deflate*
Diffstat (limited to 'deflate_p.h')
-rw-r--r--deflate_p.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/deflate_p.h b/deflate_p.h
index 09746a7..78a63af 100644
--- a/deflate_p.h
+++ b/deflate_p.h
@@ -58,12 +58,12 @@ static inline int zng_tr_tally_dist(deflate_state *s, unsigned dist, unsigned ch
* IN assertion: strstart is set to the end of the current match.
*/
#define FLUSH_BLOCK_ONLY(s, last) { \
- zng_tr_flush_block(s, (s->block_start >= 0L ? \
+ zng_tr_flush_block(s, (s->block_start >= 0 ? \
(char *)&s->window[(unsigned)s->block_start] : \
NULL), \
- (unsigned long)((long)s->strstart - s->block_start), \
+ (unsigned long)((int)s->strstart - s->block_start), \
(last)); \
- s->block_start = s->strstart; \
+ s->block_start = (int)s->strstart; \
flush_pending(s->strm); \
}