aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gzread.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gzread.c b/gzread.c
index ac8be77..b9075da 100644
--- a/gzread.c
+++ b/gzread.c
@@ -248,7 +248,7 @@ local int gz_fetch(gz_statep state) {
248} 248}
249 249
250/* Skip state->skip (> 0) uncompressed bytes of output. Return -1 on error, 0 250/* Skip state->skip (> 0) uncompressed bytes of output. Return -1 on error, 0
251 on success. */ 251 on success. */
252local int gz_skip(gz_statep state) { 252local int gz_skip(gz_statep state) {
253 unsigned n; 253 unsigned n;
254 254
@@ -257,8 +257,8 @@ local int gz_skip(gz_statep state) {
257 /* skip over whatever is in output buffer */ 257 /* skip over whatever is in output buffer */
258 if (state->x.have) { 258 if (state->x.have) {
259 n = GT_OFF(state->x.have) || 259 n = GT_OFF(state->x.have) ||
260 (z_off64_t)state->x.have > state->skip ? 260 (z_off64_t)state->x.have > state->skip ?
261 (unsigned)state->skip : state->x.have; 261 (unsigned)state->skip : state->x.have;
262 state->x.have -= n; 262 state->x.have -= n;
263 state->x.next += n; 263 state->x.next += n;
264 state->x.pos += n; 264 state->x.pos += n;