]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Avoid warning.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 21 Jun 2004 17:00:54 +0000 (17:00 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 21 Jun 2004 17:00:54 +0000 (17:00 +0000)
git-svn-id: https://svn.dealii.org/trunk@9439 0785d39b-7218-0410-832d-ea1e28bc413d

tests/bits/compressed_sparsity_pattern_03.cc

index 85102651046ccaad9e4b70d6d60069446d8fffcc..10db1de1098a9991f00efa5671588a04eafc6bb7 100644 (file)
@@ -39,8 +39,9 @@ void test ()
       for (unsigned int j=0; j<40; ++j)
         xx[(i+(i+1)*(j*j+i))%N] = true;
 
-      Assert (std::count (xx.begin(), xx.end(), true) ==
-              csp.row_length(i),
+      Assert (static_cast<unsigned int>(std::count (xx.begin(), xx.end(),
+                                                    true))
+              == csp.row_length(i),
               ExcInternalError());
       
       deallog << i << ' ' << csp.row_length (i) << 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.