diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-12-12 15:58:25 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-12-12 15:58:25 +0000 |
commit | ca47aae7ecfdafb5e88baee13737908b79a4c716 (patch) | |
tree | ddbff3f5142108238e24e4ec384abd7d19bcb57b /tests | |
parent | fb883bf80422c4763921b3d6e2a9ac81596e77bf (diff) |
Minor cleanup
https://codereview.appspot.com/6927054/
git-svn-id: http://skia.googlecode.com/svn/trunk@6756 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests')
-rw-r--r-- | tests/InfRectTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/InfRectTest.cpp b/tests/InfRectTest.cpp index ae4ea60cd4..808bcee811 100644 --- a/tests/InfRectTest.cpp +++ b/tests/InfRectTest.cpp @@ -41,8 +41,8 @@ static void test_center(skiatest::Reporter* reporter) { rand.nextS() >> 2, rand.nextS() >> 2); int cx = r.centerX(); int cy = r.centerY(); - REPORTER_ASSERT(reporter, (r.left() + r.right() >> 1) == cx); - REPORTER_ASSERT(reporter, (r.top() + r.bottom() >> 1) == cy); + REPORTER_ASSERT(reporter, ((r.left() + r.right()) >> 1) == cx); + REPORTER_ASSERT(reporter, ((r.top() + r.bottom()) >> 1) == cy); } } |