diff options
author | Jeffrey Walton <noloader@gmail.com> | 2017-08-22 05:10:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-22 05:10:25 -0400 |
commit | 559fc3bd8959d4ed86aae7d3f28a1a807c52a44f (patch) | |
tree | e1c7855ca91967d20626e61cba412bb68d02f73f /bench1.cpp | |
parent | 7851a0d5106dfb287f30ca0432285c15c679cf96 (diff) | |
download | cryptopp-git-559fc3bd8959d4ed86aae7d3f28a1a807c52a44f.tar.gz |
Fix benchmark selection code (GH #464)
Diffstat (limited to 'bench1.cpp')
-rw-r--r-- | bench1.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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
|