mirror of https://github.com/google/benchmark.git
Fix precision loss warning in MSVC. (#574)
This commit is contained in:
parent
c4858d8012
commit
64d4805dd7
|
@ -28,7 +28,7 @@ namespace benchmark {
|
|||
BigOFunc* FittingCurve(BigO complexity) {
|
||||
switch (complexity) {
|
||||
case oN:
|
||||
return [](int64_t n) -> double { return n; };
|
||||
return [](int64_t n) -> double { return static_cast<double>(n); };
|
||||
case oNSquared:
|
||||
return [](int64_t n) -> double { return std::pow(n, 2); };
|
||||
case oNCubed:
|
||||
|
|
Loading…
Reference in New Issue