mirror of
https://github.com/facebook/zstd.git
synced 2025-10-09 00:05:28 -04:00
const dictOffset
This commit is contained in:
parent
1e0d125e76
commit
43ffcdde40
@ -703,7 +703,7 @@ static U32 generateSequences(U32* seed, frame_t* frame, seqStore_t* seqStore,
|
|||||||
for (j = 0; j < matchLen; j++) {
|
for (j = 0; j < matchLen; j++) {
|
||||||
if ((void*)(srcPtr - offset) < (void*)frame->srcStart) {
|
if ((void*)(srcPtr - offset) < (void*)frame->srcStart) {
|
||||||
/* copy from dictionary instead of literals */
|
/* copy from dictionary instead of literals */
|
||||||
size_t dictOffset = offset - (srcPtr - (BYTE*)frame->srcStart);
|
size_t const dictOffset = offset - (srcPtr - (BYTE*)frame->srcStart);
|
||||||
*srcPtr = *(dictEnd - dictOffset);
|
*srcPtr = *(dictEnd - dictOffset);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user