Unverified Commit f4009ef8 by Dominic Hamon Committed by GitHub

Fix #476. Explicit coersion of size_t to boolean (#477)

parent 72a4581c
......@@ -433,7 +433,7 @@ class State {
if (BENCHMARK_BUILTIN_EXPECT(!started_, false)) {
StartKeepRunning();
}
bool const res = --total_iterations_;
bool const res = (--total_iterations_ != 0);
if (BENCHMARK_BUILTIN_EXPECT(!res, false)) {
FinishKeepRunning();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment