summaryrefslogtreecommitdiffstats
path: root/skia
diff options
context:
space:
mode:
authorevanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-10 02:04:42 +0000
committerevanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-10 02:04:42 +0000
commit65b8ff3488f6ea34f3b03c062a2a2c4ba211046b (patch)
tree5a13cef0ae49a572496ff238b1280afe1adc2a42 /skia
parent8fd8fc711fc998a46200b790193508869c7e73b8 (diff)
downloadchromium_src-65b8ff3488f6ea34f3b03c062a2a2c4ba211046b.zip
chromium_src-65b8ff3488f6ea34f3b03c062a2a2c4ba211046b.tar.gz
chromium_src-65b8ff3488f6ea34f3b03c062a2a2c4ba211046b.tar.bz2
Add suggested parentheses to fix build with GCC 4.3
BUG=1876 Patch from James Vega <vega.james@gmail.com>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1965 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia')
-rw-r--r--skia/effects/SkCullPoints.cpp8
1 files changed, 4 insertions, 4 deletions
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