From: Wolfgang Bangerth Date: Fri, 6 Nov 2009 00:00:42 +0000 (+0000) Subject: Avoid a warning. X-Git-Tag: v8.0.0~6845 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4771a880c83c2d5a125cc9b535d8f43025702cfc;p=dealii.git Avoid a warning. git-svn-id: https://svn.dealii.org/trunk@20052 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/include/dofs/dof_accessor.templates.h b/deal.II/deal.II/include/dofs/dof_accessor.templates.h index aa3bbf063e..9c5ba69dbb 100644 --- a/deal.II/deal.II/include/dofs/dof_accessor.templates.h +++ b/deal.II/deal.II/include/dofs/dof_accessor.templates.h @@ -2355,7 +2355,9 @@ namespace internal typename BaseClass::ExcInvalidObject()); Assert (&accessor.get_fe() != 0, typename BaseClass::ExcInvalidObject()); - Assert (local_source_end-local_source_begin == accessor.get_fe().dofs_per_cell, + Assert (static_cast(local_source_end-local_source_begin) + == + accessor.get_fe().dofs_per_cell, typename BaseClass::ExcVectorDoesNotMatch()); Assert (accessor.dof_handler->n_dofs() == global_destination.size(), typename BaseClass::ExcVectorDoesNotMatch());