From 7c9be58450246387ccdc9ddcf903e0533b4d6fe6 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Thu, 9 Jul 2015 08:51:53 -0400 Subject: [PATCH] fix tests --- tests/base/functions_12.cc | 2 +- tests/base/number_traits_complex.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/base/functions_12.cc b/tests/base/functions_12.cc index 92b33a989d..75ac590d7b 100644 --- a/tests/base/functions_12.cc +++ b/tests/base/functions_12.cc @@ -32,7 +32,7 @@ void check() std::vector coeffs(n_mon); for (unsigned int i = 0; i < n_mon; ++i) - coeffs[i] = std::pow(-1.0,i)*(i+1); + coeffs[i] = std::pow(-1.0,static_cast(i))*(i+1); Functions::Polynomial poly(exponents, coeffs); diff --git a/tests/base/number_traits_complex.cc b/tests/base/number_traits_complex.cc index 8119975055..ce412ea175 100644 --- a/tests/base/number_traits_complex.cc +++ b/tests/base/number_traits_complex.cc @@ -24,7 +24,7 @@ #include // replace type names found on MAC OS -std::string cleanup_type(std::string &in) +std::string cleanup_type(const std::string &in) { std::string ret = in; ret = Utilities::replace_in_string(ret, "NSt3__17complexIfEE", "St7complexIfE"); -- 2.39.5