From f969e3be085edd6d9a5a672717c75b96081a0b13 Mon Sep 17 00:00:00 2001 From: Christian Engwer <christi@dune-project.org> Date: Mon, 1 Feb 2010 13:22:40 +0000 Subject: [PATCH] * avoid implict casts merge to release [[Imported from SVN: r5877]] --- dune/common/fvector.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dune/common/fvector.hh b/dune/common/fvector.hh index 904b59cca..72e5ea75c 100644 --- a/dune/common/fvector.hh +++ b/dune/common/fvector.hh @@ -108,7 +108,7 @@ namespace Dune { { static inline typename FieldTraits<K>::real_type sqrt (const K& k) { - return std::sqrt((double)k); + return typename FieldTraits<K>::real_type(std::sqrt(double(k))); } }; -- GitLab