summaryrefslogtreecommitdiff
path: root/deflate_medium.c
diff options
context:
space:
mode:
authorNathan Moinvaziri <nathan@nathanm.com>2020-05-26 17:04:59 -0700
committerHans Kristian Rosbach <hk-github@circlestorm.org>2020-05-30 21:29:44 +0200
commita0fa24f92fddf638a3d064389199599d6b5e9a5b (patch)
treef9c87d4152d0cec505b4d869366ed777c7068625 /deflate_medium.c
parent5518060c399519ea0ab11deba8635e55e9e14cd9 (diff)
Remove IPos typedef which also helps to reduce casting warnings.
Diffstat (limited to 'deflate_medium.c')
-rw-r--r--deflate_medium.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/deflate_medium.c b/deflate_medium.c
index 81b3ad7..21dcbe4 100644
--- a/deflate_medium.c
+++ b/deflate_medium.c
@@ -98,7 +98,7 @@ static void insert_match(deflate_state *s, struct match match) {
}
static void fizzle_matches(deflate_state *s, struct match *current, struct match *next) {
- IPos limit;
+ Pos limit;
unsigned char *match, *orig;
int changed = 0;
struct match c, n;
@@ -169,7 +169,7 @@ ZLIB_INTERNAL block_state deflate_medium(deflate_state *s, int flush) {
memset(&next_match, 0, sizeof(struct match));
for (;;) {
- IPos hash_head = 0; /* head of the hash chain */
+ Pos hash_head = 0; /* head of the hash chain */
int bflush = 0; /* set if current block must be flushed */
/* Make sure that we always have enough lookahead, except