diff options
Diffstat (limited to 'infblock.c')
-rw-r--r-- | infblock.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -11,6 +11,10 @@ | |||
11 | 11 | ||
12 | struct inflate_codes_state {int dummy;}; /* for buggy compilers */ | 12 | struct inflate_codes_state {int dummy;}; /* for buggy compilers */ |
13 | 13 | ||
14 | /* simplify the use of the inflate_huft type with some defines */ | ||
15 | #define exop word.what.Exop | ||
16 | #define bits word.what.Bits | ||
17 | |||
14 | /* Table for deflate from PKZIP's appnote.txt. */ | 18 | /* Table for deflate from PKZIP's appnote.txt. */ |
15 | local const uInt border[] = { /* Order of the bit length code lengths */ | 19 | local const uInt border[] = { /* Order of the bit length code lengths */ |
16 | 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15}; | 20 | 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15}; |
@@ -264,8 +268,8 @@ int r; | |||
264 | t = s->sub.trees.bb; | 268 | t = s->sub.trees.bb; |
265 | NEEDBITS(t) | 269 | NEEDBITS(t) |
266 | h = s->sub.trees.tb + ((uInt)b & inflate_mask[t]); | 270 | h = s->sub.trees.tb + ((uInt)b & inflate_mask[t]); |
267 | t = h->word.what.Bits; | 271 | t = h->bits; |
268 | c = h->more.Base; | 272 | c = h->base; |
269 | if (c < 16) | 273 | if (c < 16) |
270 | { | 274 | { |
271 | DUMPBITS(t) | 275 | DUMPBITS(t) |