diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tests/test_bigint.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/test_bigint.cpp b/src/tests/test_bigint.cpp index f07c82330..e23f50055 100644 --- a/src/tests/test_bigint.cpp +++ b/src/tests/test_bigint.cpp @@ -162,9 +162,9 @@ class BigInt_Unit_Tests : public Test counts[r - range_min] += 1; } - for(size_t i = 0; i != counts.size(); ++i) + for(const auto count : counts) { - double ratio = static_cast<double>(counts[i]) / ITERATIONS_PER_POSSIBLE_VALUE; + double ratio = static_cast<double>(count) / ITERATIONS_PER_POSSIBLE_VALUE; if(ratio >= 0.85 && ratio <= 1.15) // +/-15 % { |