Commit 75b0efcc authored by Robert Maynard's avatar Robert Maynard

Correct casting warnings found with new cmake code

parent f7c46ecc
......@@ -122,7 +122,7 @@ void BenchmarkValueType()
try
{
bench.GatherSamples(functor);
vtkm::UInt64 speed = static_cast<vtkm::UInt64>(size / stats::Mean(bench.GetSamples()));
vtkm::UInt64 speed = size / static_cast<vtkm::UInt64>(stats::Mean(bench.GetSamples()));
speedStr = HumanSize(speed) + std::string("/s");
}
catch (vtkm::cont::ErrorBadAllocation&)
......
......@@ -57,7 +57,7 @@ struct AverageByKey
ComponentType component = valuesIn[index];
sum = sum + component;
}
return sum / valuesIn.GetNumberOfComponents();
return sum / static_cast<ComponentType>(valuesIn.GetNumberOfComponents());
}
};
......
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