diff options
| author | Simon Tatham <anakin@pobox.com> | 2006-12-07 18:07:45 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2006-12-07 18:07:45 +0000 |
| commit | 10e38f34f5fc9710cca402b23cbf39d0fb79739a (patch) | |
| tree | dcf1fb5b0e0ea6f083faec789ea1e67213ff9c66 /deflate.c | |
| parent | dc9478059884bc1c21780bdefa6b340650711f3f (diff) | |
| download | halibut-10e38f34f5fc9710cca402b23cbf39d0fb79739a.zip halibut-10e38f34f5fc9710cca402b23cbf39d0fb79739a.tar.gz halibut-10e38f34f5fc9710cca402b23cbf39d0fb79739a.tar.bz2 halibut-10e38f34f5fc9710cca402b23cbf39d0fb79739a.tar.xz | |
Fix typo in limit test in deflate_buildhuf(). (The only two limit
values ever used are 15 and 7, so testing against 16 is silly.)
[originally from svn r6969]
[this svn revision also touched misc]
Diffstat (limited to 'deflate.c')
| -rw-r--r-- | deflate.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -912,7 +912,8 @@ static void deflate_buildhuf(int *freqs, unsigned char *lengths, * assert()-level confident that the resulting code lengths * contain nothing outside the permitted range. */ - maxprob = (limit == 16 ? 2584 : 55); /* no point in computing full F_n */ + assert(limit == 15 || limit == 7); + maxprob = (limit == 15 ? 2584 : 55); /* no point in computing full F_n */ totalfreq = nactivesyms = 0; smallestfreq = -1; for (i = 0; i < nsyms; i++) { |