summaryrefslogtreecommitdiff
path: root/infcodes.c
diff options
context:
space:
mode:
Diffstat (limited to 'infcodes.c')
-rw-r--r--infcodes.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/infcodes.c b/infcodes.c
index 181aa53..1d3baa9 100644
--- a/infcodes.c
+++ b/infcodes.c
@@ -11,8 +11,6 @@
11#include "inffast.h" 11#include "inffast.h"
12 12
13/* simplify the use of the inflate_huft type with some defines */ 13/* simplify the use of the inflate_huft type with some defines */
14#define base more.Base
15#define next more.Next
16#define exop word.what.Exop 14#define exop word.what.Exop
17#define bits word.what.Bits 15#define bits word.what.Bits
18 16
@@ -145,7 +143,7 @@ int r;
145 if ((e & 64) == 0) /* next table */ 143 if ((e & 64) == 0) /* next table */
146 { 144 {
147 c->sub.code.need = e; 145 c->sub.code.need = e;
148 c->sub.code.tree = t->next; 146 c->sub.code.tree = t + t->base;
149 break; 147 break;
150 } 148 }
151 if (e & 32) /* end of block */ 149 if (e & 32) /* end of block */
@@ -183,7 +181,7 @@ int r;
183 if ((e & 64) == 0) /* next table */ 181 if ((e & 64) == 0) /* next table */
184 { 182 {
185 c->sub.code.need = e; 183 c->sub.code.need = e;
186 c->sub.code.tree = t->next; 184 c->sub.code.tree = t + t->base;
187 break; 185 break;
188 } 186 }
189 c->mode = BADCODE; /* invalid code */ 187 c->mode = BADCODE; /* invalid code */