summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2018-07-12 14:36:37 -0400
committerJaron Kent-Dobias <jaron@kent-dobias.com>2018-07-12 14:36:37 -0400
commit7fe25d035272fb5b369d97a89a82efc8d114b2a9 (patch)
treef8364b702fcf1255abfb169164da8f60a979fb34
parentce54e63830421435115663436d120f2319bb711d (diff)
downloadc++-7fe25d035272fb5b369d97a89a82efc8d114b2a9.tar.gz
c++-7fe25d035272fb5b369d97a89a82efc8d114b2a9.tar.bz2
c++-7fe25d035272fb5b369d97a89a82efc8d114b2a9.zip
fixed off by one error
-rw-r--r--src/analyze_correlations.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze_correlations.cpp b/src/analyze_correlations.cpp
index f0fbd15..c5b2399 100644
--- a/src/analyze_correlations.cpp
+++ b/src/analyze_correlations.cpp
@@ -164,7 +164,7 @@ int main (int argc, char *argv[]) {
drop = N - pow(2, floor(log(N) / log(2)));
}
- if (N < drop) {
+ if (N <= drop) {
printf("\033[F%lu: Number of steps %lu is less than %" PRIcount ", nothing done.\n", id, N, drop);
break;
} else {