From: Daniel Arndt Date: Tue, 28 Nov 2017 14:42:17 +0000 (+0100) Subject: Fix warning regarding unsigned int comparison X-Git-Tag: v9.0.0-rc1~714^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F5543%2Fhead;p=dealii.git Fix warning regarding unsigned int comparison --- diff --git a/source/dofs/dof_renumbering.cc b/source/dofs/dof_renumbering.cc index df951276ba..ce0cca6b45 100644 --- a/source/dofs/dof_renumbering.cc +++ b/source/dofs/dof_renumbering.cc @@ -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(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