From: Daniel Arndt Date: Tue, 27 Nov 2018 00:19:30 +0000 (+0100) Subject: Use unsigned types for loop again X-Git-Tag: v9.1.0-rc1~527^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06c38ee57e0a45141487eea3be30575fe4aaf70e;p=dealii.git Use unsigned types for loop again --- diff --git a/source/distributed/tria.cc b/source/distributed/tria.cc index 29957e56ac..fb1eb28f59 100644 --- a/source/distributed/tria.cc +++ b/source/distributed/tria.cc @@ -3594,13 +3594,15 @@ namespace parallel types::subdomain_id ghost_owner = 0; typename dealii::internal::p4est::types::topidx ghost_tree = 0; - for (int g_idx = 0; static_cast(g_idx) < - parallel_ghost->ghosts.elem_count; + for (unsigned int g_idx = 0; + g_idx < parallel_ghost->ghosts.elem_count; ++g_idx) { - while (g_idx >= parallel_ghost->proc_offsets[ghost_owner + 1]) + while (g_idx >= static_cast( + parallel_ghost->proc_offsets[ghost_owner + 1])) ++ghost_owner; - while (g_idx >= parallel_ghost->tree_offsets[ghost_tree + 1]) + while (g_idx >= static_cast( + parallel_ghost->tree_offsets[ghost_tree + 1])) ++ghost_tree; quadr = static_cast<