From 6759211ad8a5006689216a86c3267bb503bfccc1 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Fri, 9 Sep 2011 23:18:57 -0700 Subject: zlib 1.0.8 --- inflate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'inflate.c') diff --git a/inflate.c b/inflate.c index 5bdd997..3cff366 100644 --- a/inflate.c +++ b/inflate.c @@ -321,7 +321,8 @@ z_streamp z; /* search */ while (n && m < 4) { - if (*p == (Byte)(m < 2 ? 0 : 0xff)) + static const Byte mark[4] = {0, 0, 0xff, 0xff}; + if (*p == mark[m]) m++; else if (*p) m = 0; -- cgit v1.2.3-55-g6feb