]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix MSVC warning regarding comparison of signed and unsigned numbers 6286/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 22 Apr 2018 20:04:05 +0000 (22:04 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 22 Apr 2018 20:06:07 +0000 (22:06 +0200)
source/matrix_free/task_info.cc

index d423b6b7fce118821d6f34a99c206e8085edece1..97dd3fe79b2d1ba1cc6059a0cb5505b7c49f4c9c 100644 (file)
@@ -808,7 +808,7 @@ namespace internal
       unsigned int counter = 0;
       unsigned int n_cells = 0;
       std::vector<std::vector<unsigned int> > renumbering_category(n_categories);
-      for (unsigned int block=1; block<(n_procs>1 ? 5 : 3); ++block)
+      for (unsigned int block=1; block<(n_procs>1u ? 5u : 3u); ++block)
         {
           // step 1: sort by category
           for (unsigned int i=0; i<n_active_cells+n_ghost_cells; ++i)

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.