From 88ff6bb85fdc5e58d672950a1c7fcdaa0f91c1df Mon Sep 17 00:00:00 2001 From: Vasile Vilvoiu Date: Thu, 22 Jul 2021 20:41:28 +0300 Subject: Fix window width calculation in Configuration. --- src/configuration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/configuration.cpp') diff --git a/src/configuration.cpp b/src/configuration.cpp index 77eb374..00e6bdd 100644 --- a/src/configuration.cpp +++ b/src/configuration.cpp @@ -526,7 +526,7 @@ Configuration::Build(int argc, const char **argv) return std::make_tuple(conf, 1, true); } - conf.width_ = maxi - mini; + conf.width_ = maxi - mini + 1; /* see also FFT::Crop() */ if (conf.width_ == 0) { std::cerr << "'fmin' and 'fmax' are either equal or very close, which is not allowed when not resampling (-q, --no_resampling)." -- cgit v1.2.3