Get inffixed.h and MAKEFIXED result to match.
authorMark Adler <madler@alumni.caltech.edu>
Thu, 6 Oct 2011 03:32:32 +0000 (20:32 -0700)
committerMark Adler <madler@alumni.caltech.edu>
Thu, 6 Oct 2011 03:32:32 +0000 (20:32 -0700)
inffixed.h
inflate.c

index 75ed4b5..d628327 100644 (file)
@@ -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] = {
index a8431ab..dd880c4 100644 (file)
--- 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(',');
     }