]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Put parentheses around the stronger binding operator.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 27 Jan 2007 22:03:53 +0000 (22:03 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 27 Jan 2007 22:03:53 +0000 (22:03 +0000)
git-svn-id: https://svn.dealii.org/trunk@14389 0785d39b-7218-0410-832d-ea1e28bc413d

tests/deal.II/support_point_map.cc

index 24209c5664c8753055f712091508ebdd2bf1abae..e41e7a6f12e3b66910b8df97787bacebeb6e057e 100644 (file)
@@ -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))))));
 }
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.