Add rails for huffman table log calculation (#3047)

This commit is contained in:
binhdvo
2022-02-02 15:12:48 -05:00
committed by GitHub
parent 529a5879bf
commit b9566fc558
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -1224,7 +1224,10 @@ static size_t HUF_compressCTable_internal(
unsigned HUF_optimalTableLog(unsigned maxTableLog, size_t srcSize, unsigned maxSymbolValue)
{
return FSE_optimalTableLog_internal(maxTableLog, srcSize, maxSymbolValue, 1);
unsigned tableLog = FSE_optimalTableLog_internal(maxTableLog, srcSize, maxSymbolValue, 1);
assert(tableLog <= HUF_TABLELOG_MAX);
return tableLog;
}
typedef struct {