From f083ff0f6422cc2b00f01908827c1b94559e8998 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 29 Dec 2020 08:01:53 +1000 Subject: [PATCH] analyse: correct the argc offset test --- tools/analyse.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/analyse.cpp b/tools/analyse.cpp index f8800d6..f1821fa 100644 --- a/tools/analyse.cpp +++ b/tools/analyse.cpp @@ -174,13 +174,13 @@ int main (int argc, char const **argv) } emory::chunk::params p = emory::chunk::DEFAULT_PARAMS; - if (argc > ARG_BITS + 1) + if (argc > ARG_BITS) p.bits = cruft::parse::from_string (argv[ARG_BITS]); - if (argc > ARG_WINDOW + 1) + if (argc > ARG_WINDOW) p.window = cruft::parse::from_string (argv[ARG_WINDOW]); - if (argc > ARG_BITS + 1) + if (argc > ARG_MINIMUM) p.minimum = cruft::parse::from_string (argv[ARG_MINIMUM]); - if (argc > ARG_MAXIMUM + 1) + if (argc > ARG_MAXIMUM) p.maximum = cruft::parse::from_string (argv[ARG_MAXIMUM]); std::cerr << p << '\n';