From 264976def327306a4a205857d98ec6792a20cae2 Mon Sep 17 00:00:00 2001 From: Dominic Hamon Date: Tue, 27 Apr 2021 08:24:27 +0100 Subject: [PATCH] Fix windows warning on type conversion (#1121) --- src/benchmark_register.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }