diff options
| author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:20:15 -0700 |
|---|---|---|
| committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:20:15 -0700 |
| commit | c34c1fcbb19852ca35216ad66276f4f86af3fc22 (patch) | |
| tree | 4bd0972d6c682e474725eca372f6551d539f8768 /infcodes.c | |
| parent | 02b6cf579f02ec78c052735020a5d3c5723ed641 (diff) | |
| download | zlib-c34c1fcbb19852ca35216ad66276f4f86af3fc22.tar.gz zlib-c34c1fcbb19852ca35216ad66276f4f86af3fc22.tar.bz2 zlib-c34c1fcbb19852ca35216ad66276f4f86af3fc22.zip | |
zlib 1.1.2v1.1.2
Diffstat (limited to '')
| -rw-r--r-- | infcodes.c | 6 |
1 files changed, 2 insertions, 4 deletions
| @@ -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 */ |
