From 65b8ff3488f6ea34f3b03c062a2a2c4ba211046b Mon Sep 17 00:00:00 2001 From: "evanm@google.com" Date: Wed, 10 Sep 2008 02:04:42 +0000 Subject: Add suggested parentheses to fix build with GCC 4.3 BUG=1876 Patch from James Vega . git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1965 0039d316-1c4b-4281-b951-d872f2087c98 --- skia/effects/SkCullPoints.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'skia') diff --git a/skia/effects/SkCullPoints.cpp b/skia/effects/SkCullPoints.cpp index d272d01..1b50349 100644 --- a/skia/effects/SkCullPoints.cpp +++ b/skia/effects/SkCullPoints.cpp @@ -36,10 +36,10 @@ bool SkCullPoints::sect_test(int x0, int y0, int x1, int y1) const { const SkIRect& r = fR; - if (x0 < r.fLeft && x1 < r.fLeft || - x0 > r.fRight && x1 > r.fRight || - y0 < r.fTop && y1 < r.fTop || - y0 > r.fBottom && y1 > r.fBottom) + if ((x0 < r.fLeft && x1 < r.fLeft) || + (x0 > r.fRight && x1 > r.fRight) || + (y0 < r.fTop && y1 < r.fTop) || + (y0 > r.fBottom && y1 > r.fBottom)) return false; // since the crossprod test is a little expensive, check for easy-in cases first -- cgit v1.1