]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Small fix.
authorhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 17 Mar 2004 13:05:39 +0000 (13:05 +0000)
committerhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 17 Mar 2004 13:05:39 +0000 (13:05 +0000)
git-svn-id: https://svn.dealii.org/trunk@8803 0785d39b-7218-0410-832d-ea1e28bc413d

tests/bits/vector_19.cc

index 1e06504a315402d01bc8ab0747d5dfe8a3bf66eb..2d3432c407baf6b538d5dd66048cffb653a6d52a 100644 (file)
@@ -28,7 +28,7 @@ void test (Vector<double> &v)
   for (unsigned int i=0; i<v.size(); i+=1+i)
     {
       v(i) = i;
-      norm = std::max(norm,fabs(i));
+      norm = std::max(norm,std::fabs(static_cast<double>(i)));
     }
   v.compress ();
 

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.