deflate_medium.c(127,76): warning C4244: '=': conversion from 'unsigned int' to 'Pos', possible loss of data
n = *next;
/* step one: try to move the "next" match to the left as much as possible */
- limit = next->strstart > MAX_DIST(s) ? next->strstart - MAX_DIST(s) : 0;
+ limit = next->strstart > MAX_DIST(s) ? next->strstart - (Pos)MAX_DIST(s) : 0;
match = s->window + n.match_start - 1;
orig = s->window + n.strstart - 1;
s->sym_buf[s->sym_next++] = (uint8_t)len;
s->matches++;
dist--;
- Assert((uint16_t)dist < (uint16_t)MAX_DIST(s) &&
- (uint16_t)d_code(dist) < (uint16_t)D_CODES, "zng_tr_tally: bad match");
+ Assert(dist < MAX_DIST(s) && (uint16_t)d_code(dist) < (uint16_t)D_CODES,
+ "zng_tr_tally: bad match");
s->dyn_ltree[zng_length_code[len]+LITERALS+1].Freq++;
s->dyn_dtree[d_code(dist)].Freq++;