]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix warning regarding unsigned int comparison 5543/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 28 Nov 2017 14:42:17 +0000 (15:42 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 28 Nov 2017 14:42:17 +0000 (15:42 +0100)
source/dofs/dof_renumbering.cc

index df951276ba249a1ad60338ec05ca03a761c818a3..ce0cca6b453046a9911d62e0dcbeead2b175fb41 100644 (file)
@@ -506,10 +506,10 @@ namespace DoFRenumbering
               }
             Assert (erase_these_indices.size() == active_but_not_owned_dofs.n_elements(),
                     ExcInternalError());
-            Assert (std::count (my_new_indices.begin(),
-                                my_new_indices.end(),
-                                numbers::invalid_dof_index) ==
-                    active_but_not_owned_dofs.n_elements(),
+            Assert (static_cast<unsigned int>(std::count (my_new_indices.begin(),
+                                                          my_new_indices.end(),
+                                                          numbers::invalid_dof_index))
+                    == active_but_not_owned_dofs.n_elements(),
                     ExcInternalError());
 
             // then compute a renumbering of the remaining ones

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.