mirror of
https://github.com/google/benchmark.git
synced 2024-11-28 15:34:33 +00:00
Fix windows warning on type conversion (#1121)
This commit is contained in:
parent
86da5ec294
commit
264976def3
|
@ -23,7 +23,7 @@ AddPowers(std::vector<T>* dst, T lo, T hi, int mult) {
|
||||||
static const T kmax = std::numeric_limits<T>::max();
|
static const T kmax = std::numeric_limits<T>::max();
|
||||||
|
|
||||||
// Space out the values in multiples of "mult"
|
// Space out the values in multiples of "mult"
|
||||||
for (T i = 1; i <= hi; i *= mult) {
|
for (T i = static_cast<T>(1); i <= hi; i *= mult) {
|
||||||
if (i >= lo) {
|
if (i >= lo) {
|
||||||
dst->push_back(i);
|
dst->push_back(i);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue