Assert that Dict and Current Window are Adjacent in Index Space
This commit is contained in:
1 parent
298d24fa57
commit
d9c7e67125
2 files changed
+6
-1
No files matched your search
@@ -72,7 +72,7 @@ size_t ZSTD_compressBlock_fast_generic(
|
||||
const BYTE* const dictEnd = dictMode == ZSTD_dictMatchState ?
|
||||
dms->window.nextSrc : NULL;
|
||||
const U32 dictIndexDelta = dictMode == ZSTD_dictMatchState ?
|
||||
ms->loadedDictEnd - (U32)(dictEnd - dictBase) :
|
||||
prefixLowestIndex - (U32)(dictEnd - dictBase) :
|
||||
0;
|
||||
const U32 dictAndPrefixLength = (U32)(ip - prefixLowest + dictEnd - dictLowest);
|
||||
|
||||
|
||||
Reference in new issue
Block a user