aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-12-12 15:58:25 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-12-12 15:58:25 +0000
commitca47aae7ecfdafb5e88baee13737908b79a4c716 (patch)
treeddbff3f5142108238e24e4ec384abd7d19bcb57b /tests
parentfb883bf80422c4763921b3d6e2a9ac81596e77bf (diff)
Minor cleanup
Diffstat (limited to 'tests')
-rw-r--r--tests/InfRectTest.cpp4
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);
}
}