~kris/9p

9hist

04aacc8b3fdb1d6ba3a044ac20b173b615d2c60f — David du Colombier 26 years ago 3596dd4
Plan 9 from Bell Labs 2000-08-11
1 files changed, 4 insertions(+), 2 deletions(-)

M mpc/unsac.c
M mpc/unsac.c => mpc/unsac.c +4 -2
@@ 448,11 448,13 @@ hufftab(Decode *dec, Huff *h, char *hb, ulong *bitcount, int maxleaf, int maxbit
	 */
	for(b = maxbits; b > flatbits; b--){
		code = h->maxcode[b];
		if(code == -1)
			break;
		mincode = code + 1 - bitcount[b];
		mincode >>= b - flatbits;
		code >>= b - flatbits;
		for(; code >= mincode; code--)
			h->flat[code] = (b << 8) | 0xff;
		for(; mincode <= code; mincode++)
			h->flat[mincode] = (b << 8) | 0xff;
	}

	for(i = 0; i < maxleaf; i++){