Skip to content

Commit 518ad01

Browse files
committed
Get inffixed.h and MAKEFIXED result to match.
1 parent af030e4 commit 518ad01

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: inffixed.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
* Generated automatically by makefixed().
33
*/
44

5-
/* WARNING: this file should *not* be used by applications. It
6-
is part of the implementation of the compression library and
7-
is subject to change. Applications should only use zlib.h.
5+
/* WARNING: this file should *not* be used by applications.
6+
It is part of the implementation of this library and is
7+
subject to change. Applications should only use zlib.h.
88
*/
99

1010
static const code lenfix[512] = {

Diff for: inflate.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,8 @@ void makefixed()
321321
low = 0;
322322
for (;;) {
323323
if ((low % 7) == 0) printf("\n ");
324-
printf("{%u,%u,%d}", state.lencode[low].op, state.lencode[low].bits,
325-
state.lencode[low].val);
324+
printf("{%u,%u,%d}", (low & 127) == 99 ? 64 : state.lencode[low].op,
325+
state.lencode[low].bits, state.lencode[low].val);
326326
if (++low == size) break;
327327
putchar(',');
328328
}

0 commit comments

Comments
 (0)