From 0f758391cef9e8e06c1cfa474aed5185d79a4cc2 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Fri, 17 Nov 2017 10:47:34 +0100 Subject: [PATCH] Fix warning in base/bounding_box.cc --- source/base/bounding_box.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/base/bounding_box.cc b/source/base/bounding_box.cc index 42843b725e..9b2163b619 100644 --- a/source/base/bounding_box.cc +++ b/source/base/bounding_box.cc @@ -88,7 +88,7 @@ NeighborType BoundingBox < spacedim,Number >::get_neighbor_type (const BoundingB std::numeric_limits::epsilon() * (std::abs( intersect_bbox_min[d]) + std::abs(intersect_bbox_max[d] )) ) --intersect_dim; - if ( intersect_dim == 0 || intersect_dim == spacedim - 2 ) + if ( intersect_dim == 0 || intersect_dim + 2 == spacedim ) return NeighborType::simple_neighbors; // Checking the two mergeable cases: first if the boxes are aligned so that they can be merged -- 2.39.5