diff --git a/appveyor.yml b/appveyor.yml index e35a4609..13be7fa4 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -12,7 +12,7 @@ platform: environment: matrix: -# - compiler: msvc-12-seh + - compiler: msvc-12-seh - compiler: msvc-14-seh - compiler: gcc-4.9.2-posix # - compiler: gcc-4.8.4-posix diff --git a/src/complexity.cc b/src/complexity.cc index b42bd38c..7d557943 100644 --- a/src/complexity.cc +++ b/src/complexity.cc @@ -31,9 +31,9 @@ BigOFunc* FittingCurve(BigO complexity) { case oN: return [](int n) -> double { return n; }; case oNSquared: - return [](int n) -> double { return n * n; }; + return [](int n) -> double { return std::pow(n, 2); }; case oNCubed: - return [](int n) -> double { return n * n * n; }; + return [](int n) -> double { return std::pow(n, 3); }; case oLogN: return [](int n) { return std::log2(n); }; case oNLogN: