X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/halibut/blobdiff_plain/83233593881100cc42927605aec7c5333c696929..fafe28e8306978f5b4110e106db923accc08bc0f:/deflate.c diff --git a/deflate.c b/deflate.c index 33c70cc..8749397 100644 --- a/deflate.c +++ b/deflate.c @@ -651,8 +651,8 @@ struct deflate_compress_ctx { unsigned long datasize; int lastblock; int finished; - unsigned char static_len1[286], static_len2[30]; - int static_code1[286], static_code2[30]; + unsigned char static_len1[288], static_len2[30]; + int static_code1[288], static_code2[30]; struct huftrees sht; #ifdef STATISTICS unsigned long bitcount; @@ -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++) {