From: Daniel Arndt Date: Fri, 17 Nov 2017 09:47:34 +0000 (+0100) Subject: Fix warning in base/bounding_box.cc X-Git-Tag: v9.0.0-rc1~759^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f758391cef9e8e06c1cfa474aed5185d79a4cc2;p=dealii.git Fix warning in base/bounding_box.cc --- 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