]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix tests 1094/head
authorTimo Heister <timo.heister@gmail.com>
Thu, 9 Jul 2015 12:51:53 +0000 (08:51 -0400)
committerTimo Heister <timo.heister@gmail.com>
Thu, 9 Jul 2015 12:51:53 +0000 (08:51 -0400)
tests/base/functions_12.cc
tests/base/number_traits_complex.cc

index 92b33a989db87c6a04089010b4bb4373212ab14f..75ac590d7bb79de1db9827f4eac65aebe15e61c0 100644 (file)
@@ -32,7 +32,7 @@ void check()
 
   std::vector<double> 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<double>(i))*(i+1);
 
   Functions::Polynomial<dim> poly(exponents, coeffs);
 
index 8119975055fb92aa0d7397479fd4bb3dea6e6413..ce412ea175352d4006b07d325a2b6393a9071582 100644 (file)
@@ -24,7 +24,7 @@
 #include <typeinfo>
 
 // 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");

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.