Skip to content
Snippets Groups Projects
Commit f969e3be authored by Christian Engwer's avatar Christian Engwer
Browse files

* avoid implict casts

merge to release

[[Imported from SVN: r5877]]
parent 56a4dc5d
Branches
Tags
No related merge requests found
......@@ -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)));
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment