Fix incorrect MIN_OVERLAP_TIMES calculations
These aren't actually used which is why this never came up. The other (similarly unused) constants were calculated correctly.
This commit is contained in:
parent
02e522cff1
commit
1c80331829
|
@ -31,7 +31,7 @@ const MAX_WINDOW_SIZE: usize = 1 << MAX_WINDOW_ORDER; // 32768
|
||||||
|
|
||||||
const MIN_OVERLAP_ORDER: usize = 2;
|
const MIN_OVERLAP_ORDER: usize = 2;
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
const MIN_OVERLAP_TIMES: usize = 2 << MIN_OVERLAP_ORDER; // 4
|
const MIN_OVERLAP_TIMES: usize = 1 << MIN_OVERLAP_ORDER; // 4
|
||||||
const DEFAULT_OVERLAP_ORDER: usize = 3;
|
const DEFAULT_OVERLAP_ORDER: usize = 3;
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
const DEFAULT_OVERLAP_TIMES: usize = 1 << DEFAULT_OVERLAP_ORDER; // 4
|
const DEFAULT_OVERLAP_TIMES: usize = 1 << DEFAULT_OVERLAP_ORDER; // 4
|
||||||
|
|
|
@ -35,7 +35,7 @@ const MAX_WINDOW_SIZE: usize = 1 << MAX_WINDOW_ORDER; // 32768
|
||||||
|
|
||||||
const MIN_OVERLAP_ORDER: usize = 2;
|
const MIN_OVERLAP_ORDER: usize = 2;
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
const MIN_OVERLAP_TIMES: usize = 2 << MIN_OVERLAP_ORDER; // 4
|
const MIN_OVERLAP_TIMES: usize = 1 << MIN_OVERLAP_ORDER; // 4
|
||||||
const DEFAULT_OVERLAP_ORDER: usize = 3;
|
const DEFAULT_OVERLAP_ORDER: usize = 3;
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
const DEFAULT_OVERLAP_TIMES: usize = 1 << DEFAULT_OVERLAP_ORDER; // 4
|
const DEFAULT_OVERLAP_TIMES: usize = 1 << DEFAULT_OVERLAP_ORDER; // 4
|
||||||
|
|
Loading…
Reference in a new issue