]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add missing static_cast
authorhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 15 Mar 2004 13:28:00 +0000 (13:28 +0000)
committerhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 15 Mar 2004 13:28:00 +0000 (13:28 +0000)
git-svn-id: https://svn.dealii.org/trunk@8739 0785d39b-7218-0410-832d-ea1e28bc413d

tests/deal.II/subdomain_ids.cc

index 6a13326732cff814c4def7ce2f1b7fd1e1a79feb..f46b71fa3c0249446137d13b9eb35169d85f337c 100644 (file)
@@ -165,7 +165,8 @@ void test ()
                  ExcNumberMismatch(std::count (selected_dofs.begin(),
                                                selected_dofs.end(),
                                                true),
-                                   std::pow(static_cast<double>(cells_per_direction/2+1),dim)));
+                                   static_cast<unsigned int>(std::pow(static_cast<double>(
+                                     cells_per_direction/2+1),dim))));
        }
       deallog << "Check 4 (dim=" << dim << ") ok" << std::endl;      
     };

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.