From 06c38ee57e0a45141487eea3be30575fe4aaf70e Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Tue, 27 Nov 2018 01:19:30 +0100 Subject: [PATCH] Use unsigned types for loop again --- source/distributed/tria.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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< -- 2.39.5