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
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user