Unverified Commit 264976de by Dominic Hamon Committed by GitHub

Fix windows warning on type conversion (#1121)

parent 86da5ec2
...@@ -23,7 +23,7 @@ AddPowers(std::vector<T>* dst, T lo, T hi, int mult) { ...@@ -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);
} }
......
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