From b7fbee215674c3399212dffba1e71323056931d9 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Sat, 31 Dec 2016 08:49:17 -0800 Subject: Use a uniform approach for the largest value of an unsigned type. --- inflate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inflate.c') diff --git a/inflate.c b/inflate.c index 0372edf..92e9139 100644 --- a/inflate.c +++ b/inflate.c @@ -1555,7 +1555,7 @@ unsigned long ZEXPORT inflateCodesUsed(strm) z_streamp strm; { struct inflate_state FAR *state; - if (inflateStateCheck(strm)) return (unsigned long)0 - 1; + if (inflateStateCheck(strm)) return (unsigned long)-1; state = (struct inflate_state FAR *)strm->state; return (unsigned long)(state->next - state->codes); } -- cgit v1.2.3-55-g6feb