From: Timo Heister Date: Thu, 2 Feb 2017 18:51:55 +0000 (-0500) Subject: fix >=0 comparison warning X-Git-Tag: v8.5.0-rc1~166^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3906%2Fhead;p=dealii.git fix >=0 comparison warning gcc 4.8 complained: ``` /ssd/deal-git/source/fe/mapping_q_generic.cc:2800:11: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits] ``` --- diff --git a/source/fe/mapping_q_generic.cc b/source/fe/mapping_q_generic.cc index 1df72d9163..a7a48963d6 100644 --- a/source/fe/mapping_q_generic.cc +++ b/source/fe/mapping_q_generic.cc @@ -2797,7 +2797,7 @@ namespace internal if (update_flags & update_JxW_values) AssertDimension (output_data.JxW_values.size(), n_q_points); - Assert (data.aux.size() >= dim-1, ExcInternalError()); + Assert (data.aux.size()+1 >= dim, ExcInternalError()); // first compute some common data that is used for evaluating // all of the flags below