Merge pull request #1873 from felixhandte/make-overlap-log-multithread-only
Fix #1861: Restrict overlapLog Parameter When Not Built With Multithreading
This commit is contained in:
commit
5688447758
@ -339,8 +339,13 @@ ZSTD_bounds ZSTD_cParam_getBounds(ZSTD_cParameter param)
|
|||||||
return bounds;
|
return bounds;
|
||||||
|
|
||||||
case ZSTD_c_overlapLog:
|
case ZSTD_c_overlapLog:
|
||||||
|
#ifdef ZSTD_MULTITHREAD
|
||||||
bounds.lowerBound = ZSTD_OVERLAPLOG_MIN;
|
bounds.lowerBound = ZSTD_OVERLAPLOG_MIN;
|
||||||
bounds.upperBound = ZSTD_OVERLAPLOG_MAX;
|
bounds.upperBound = ZSTD_OVERLAPLOG_MAX;
|
||||||
|
#else
|
||||||
|
bounds.lowerBound = 0;
|
||||||
|
bounds.upperBound = 0;
|
||||||
|
#endif
|
||||||
return bounds;
|
return bounds;
|
||||||
|
|
||||||
case ZSTD_c_enableLongDistanceMatching:
|
case ZSTD_c_enableLongDistanceMatching:
|
||||||
|
Loading…
Reference in New Issue
Block a user