From 4c785fb38304f8eb323e844f8b6d1b32a6465bf3 Mon Sep 17 00:00:00 2001 From: wolf Date: Tue, 29 Oct 2002 16:06:21 +0000 Subject: [PATCH] Calm down a warning in 1d about "(unsigned < 0) is always false". This code cannot be reached in 1d. git-svn-id: https://svn.dealii.org/trunk@6734 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/fe/fe_q.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deal.II/deal.II/source/fe/fe_q.cc b/deal.II/deal.II/source/fe/fe_q.cc index 21d534ddba..7a05b21fee 100644 --- a/deal.II/deal.II/source/fe/fe_q.cc +++ b/deal.II/deal.II/source/fe/fe_q.cc @@ -1436,7 +1436,8 @@ FE_Q::has_support_on_face (const unsigned int shape_index, { const unsigned int quad_index = (shape_index - first_quad_index) / dofs_per_quad; - Assert (quad_index < GeometryInfo::quads_per_cell, + Assert (static_cast(quad_index) < + static_cast(GeometryInfo::quads_per_cell), ExcInternalError()); // in 2d, cell bubble are -- 2.39.5