From 518ad0177ae2f1aaefc49285b3536a6bd8d9973c Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Wed, 5 Oct 2011 20:32:32 -0700 Subject: [PATCH] Get inffixed.h and MAKEFIXED result to match. --- inffixed.h | 6 +++--- inflate.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/inffixed.h b/inffixed.h index 75ed4b597..d62832776 100644 --- a/inffixed.h +++ b/inffixed.h @@ -2,9 +2,9 @@ * Generated automatically by makefixed(). */ - /* WARNING: this file should *not* be used by applications. It - is part of the implementation of the compression library and - is subject to change. Applications should only use zlib.h. + /* WARNING: this file should *not* be used by applications. + It is part of the implementation of this library and is + subject to change. Applications should only use zlib.h. */ static const code lenfix[512] = { diff --git a/inflate.c b/inflate.c index a8431abea..dd880c4d0 100644 --- a/inflate.c +++ b/inflate.c @@ -321,8 +321,8 @@ void makefixed() low = 0; for (;;) { if ((low % 7) == 0) printf("\n "); - printf("{%u,%u,%d}", state.lencode[low].op, state.lencode[low].bits, - state.lencode[low].val); + printf("{%u,%u,%d}", (low & 127) == 99 ? 64 : state.lencode[low].op, + state.lencode[low].bits, state.lencode[low].val); if (++low == size) break; putchar(','); }