diff --git a/src/complexity.cc b/src/complexity.cc index 8ae46b6a..97bf6e09 100644 --- a/src/complexity.cc +++ b/src/complexity.cc @@ -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(n); }; case oNSquared: return [](int64_t n) -> double { return std::pow(n, 2); }; case oNCubed: