]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Calm down a warning in 1d about "(unsigned < 0) is always false". This
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 29 Oct 2002 16:06:21 +0000 (16:06 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 29 Oct 2002 16:06:21 +0000 (16:06 +0000)
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

index 21d534ddbac670bbc66a2952eb1c666d61a75376..7a05b21fee33ee341197cf72674d35f362204854 100644 (file)
@@ -1436,7 +1436,8 @@ FE_Q<dim>::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<dim>::quads_per_cell,
+          Assert (static_cast<signed int>(quad_index) <
+                  static_cast<signed int>(GeometryInfo<dim>::quads_per_cell),
                   ExcInternalError());
           
                                            // in 2d, cell bubble are

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.