diff --git a/src/benchmark_register.h b/src/benchmark_register.h index c774e6f8..09496607 100644 --- a/src/benchmark_register.h +++ b/src/benchmark_register.h @@ -23,7 +23,7 @@ AddPowers(std::vector* dst, T lo, T hi, int mult) { static const T kmax = std::numeric_limits::max(); // Space out the values in multiples of "mult" - for (T i = 1; i <= hi; i *= mult) { + for (T i = static_cast(1); i <= hi; i *= mult) { if (i >= lo) { dst->push_back(i); }