Bug 299445 - r=darin sr=dveditz a=chase

git-svn-id: svn://10.0.0.236/trunk@175634 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bsmedberg%covad.net 2005-07-05 20:29:57 +00:00
parent 229e9b19e2
commit a0d19e7d7a

View File

@ -134,7 +134,7 @@ unsigned short FAR *work;
left -= count[len];
if (left < 0) return -1; /* over-subscribed */
}
if (left > 0 && (type == CODES || (codes - count[0] != 1)))
if (left > 0 && (type == CODES || max != 1))
return -1; /* incomplete set */
/* generate offsets into symbol table for each length for sorting */