From: bangerth Date: Sat, 27 Jan 2007 22:03:53 +0000 (+0000) Subject: Put parentheses around the stronger binding operator. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=930805037585909eec18b3e6424fbf20ef3043e3;p=dealii-svn.git Put parentheses around the stronger binding operator. git-svn-id: https://svn.dealii.org/trunk@14389 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/deal.II/support_point_map.cc b/tests/deal.II/support_point_map.cc index 24209c5664..e41e7a6f12 100644 --- a/tests/deal.II/support_point_map.cc +++ b/tests/deal.II/support_point_map.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2000, 2001, 2003, 2004, 2005 by the deal.II authors +// Copyright (C) 2000, 2001, 2003, 2004, 2005, 2007 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -68,10 +68,11 @@ bool PointComp<3>::operator () (const Point<3> &p1, const Point<3> &p2) const { return ((p1(2) < p2(2)) || - (p1(2) == p2(2)) && - ((p1(0)+p1(1) < p2(0)+p2(1)) || - ((p1(0)+p1(1) == p2(0)+p2(1)) && - (p1(0)-p1(1) < p2(0)-p2(1))))); + ((p1(2) == p2(2)) + && + ((p1(0)+p1(1) < p2(0)+p2(1)) || + ((p1(0)+p1(1) == p2(0)+p2(1)) && + (p1(0)-p1(1) < p2(0)-p2(1)))))); }