From 1c8033182987fe76c9339327921951ac64bfc173 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sat, 14 Jan 2023 00:16:57 +0100 Subject: [PATCH] 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. --- plugins/puberty_simulator/src/lib.rs | 2 +- plugins/spectral_compressor/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/puberty_simulator/src/lib.rs b/plugins/puberty_simulator/src/lib.rs index 21bb44e7..1d07b344 100644 --- a/plugins/puberty_simulator/src/lib.rs +++ b/plugins/puberty_simulator/src/lib.rs @@ -31,7 +31,7 @@ const MAX_WINDOW_SIZE: usize = 1 << MAX_WINDOW_ORDER; // 32768 const MIN_OVERLAP_ORDER: usize = 2; #[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; #[allow(dead_code)] const DEFAULT_OVERLAP_TIMES: usize = 1 << DEFAULT_OVERLAP_ORDER; // 4 diff --git a/plugins/spectral_compressor/src/lib.rs b/plugins/spectral_compressor/src/lib.rs index 7ce53934..ba5c085d 100644 --- a/plugins/spectral_compressor/src/lib.rs +++ b/plugins/spectral_compressor/src/lib.rs @@ -35,7 +35,7 @@ const MAX_WINDOW_SIZE: usize = 1 << MAX_WINDOW_ORDER; // 32768 const MIN_OVERLAP_ORDER: usize = 2; #[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; #[allow(dead_code)] const DEFAULT_OVERLAP_TIMES: usize = 1 << DEFAULT_OVERLAP_ORDER; // 4