summaryrefslogtreecommitdiff
path: root/bench1.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-08-22 05:10:25 -0400
committerGitHub <noreply@github.com>2017-08-22 05:10:25 -0400
commit559fc3bd8959d4ed86aae7d3f28a1a807c52a44f (patch)
treee1c7855ca91967d20626e61cba412bb68d02f73f /bench1.cpp
parent7851a0d5106dfb287f30ca0432285c15c679cf96 (diff)
downloadcryptopp-git-559fc3bd8959d4ed86aae7d3f28a1a807c52a44f.tar.gz
Fix benchmark selection code (GH #464)
Diffstat (limited to 'bench1.cpp')
-rw-r--r--bench1.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/bench1.cpp b/bench1.cpp
index 4fb12d2c..ce0024a6 100644
--- a/bench1.cpp
+++ b/bench1.cpp
@@ -375,7 +375,7 @@ void Benchmark(Test::TestClass suites, double t, double hertz)
g_testBegin = std::time(NULLPTR);
- if (static_cast<int>(suites) > 256 || static_cast<int>(suites) == 0)
+ if (static_cast<int>(suites) == 0 || static_cast<int>(suites) > TestLast)
suites = Test::All;
// Unkeyed algorithms