Zstd cli : --version and --help write to stdout

This commit is contained in:
Yann Collet
2015-08-25 23:32:45 +01:00
parent c705567522
commit f44b2b02b4
4 changed files with 22 additions and 22 deletions
+3 -3
View File
@@ -1904,14 +1904,14 @@ static U32 HUF_setMaxHeight(nodeElt* huffNode, U32 lastNonNull, U32 maxNbBits)
if (rankLast[nBitsToDecrease-1] == noOne)
rankLast[nBitsToDecrease-1] = rankLast[nBitsToDecrease]; // now there is one elt
huffNode[rankLast[nBitsToDecrease]].nbBits ++;
if (rankLast[nBitsToDecrease] > 0)
if (rankLast[nBitsToDecrease] == 0)
rankLast[nBitsToDecrease] = noOne;
else
{
rankLast[nBitsToDecrease]--;
if (huffNode[rankLast[nBitsToDecrease]].nbBits != maxNbBits-nBitsToDecrease)
rankLast[nBitsToDecrease] = noOne; // rank list emptied
}
else
rankLast[nBitsToDecrease] = noOne; // rank list emptied
}
while (totalCost < 0) /* Sometimes, cost correction overshoot */