]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix >=0 comparison warning 3906/head
authorTimo Heister <timo.heister@gmail.com>
Thu, 2 Feb 2017 18:51:55 +0000 (13:51 -0500)
committerTimo Heister <timo.heister@gmail.com>
Thu, 2 Feb 2017 18:59:40 +0000 (13:59 -0500)
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]
```

source/fe/mapping_q_generic.cc

index 1df72d9163bf7f494f6bfc05cb29c34e01758d08..a7a48963d66102426f1726c6b5bfc24b853e226e 100644 (file)
@@ -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

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.