mirror of
https://github.com/facebook/zstd.git
synced 2025-10-09 00:05:28 -04:00
Update lib/compress/zstd_compress.c
Co-authored-by: Nick Terrell <nickrterrell@gmail.com>
This commit is contained in:
parent
9e4c66b9e9
commit
2bde9fbf85
@ -2576,7 +2576,9 @@ int ZSTD_seqToCodes(const seqStore_t* seqStorePtr)
|
|||||||
llCodeTable[u] = (BYTE)ZSTD_LLcode(llv);
|
llCodeTable[u] = (BYTE)ZSTD_LLcode(llv);
|
||||||
ofCodeTable[u] = (BYTE)ofCode;
|
ofCodeTable[u] = (BYTE)ofCode;
|
||||||
mlCodeTable[u] = (BYTE)ZSTD_MLcode(mlv);
|
mlCodeTable[u] = (BYTE)ZSTD_MLcode(mlv);
|
||||||
longOffsets |= (ofCode >= STREAM_ACCUMULATOR_MIN);
|
assert(!(MEM_64bits() && ofCode >= STREAM_ACCUMULATOR_MIN));
|
||||||
|
if (MEM_32bits() && ofCode >= STREAM_ACCUMULATOR_MIN)
|
||||||
|
longOffsets = 1;
|
||||||
}
|
}
|
||||||
if (seqStorePtr->longLengthType==ZSTD_llt_literalLength)
|
if (seqStorePtr->longLengthType==ZSTD_llt_literalLength)
|
||||||
llCodeTable[seqStorePtr->longLengthPos] = MaxLL;
|
llCodeTable[seqStorePtr->longLengthPos] = MaxLL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user