From 8f6ef4010f6835c5ce9ede180e50a6a58512a81e Mon Sep 17 00:00:00 2001 From: "skia.committer@gmail.com" Date: Wed, 5 Jun 2013 07:01:06 +0000 Subject: Sanitizing source files in Housekeeper-Nightly git-svn-id: http://skia.googlecode.com/svn/trunk@9440 2bbb7eff-a529-9590-31e7-b0007b416f81 --- tests/PathOpsAngleTest.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/PathOpsAngleTest.cpp') diff --git a/tests/PathOpsAngleTest.cpp b/tests/PathOpsAngleTest.cpp index 583e901eec..1986a506bd 100644 --- a/tests/PathOpsAngleTest.cpp +++ b/tests/PathOpsAngleTest.cpp @@ -412,9 +412,9 @@ static int find_slop(double x, double y, double rx, double ry) { static double diamond_angle(double y, double x) { if (y >= 0) - return (x >= 0 ? y/(x+y) : 1-x/(-x+y)); + return (x >= 0 ? y/(x+y) : 1-x/(-x+y)); else - return (x < 0 ? 2-y/(-x-y) : 3+x/(x-y)); + return (x < 0 ? 2-y/(-x-y) : 3+x/(x-y)); } static const double slopTests[][4] = { @@ -431,8 +431,8 @@ static void PathOpsAngleFindSlop(skiatest::Reporter* reporter) { double y = slopTest[1]; double rx = slopTest[2]; double ry = slopTest[3]; - SkDebugf("%s xy %d=%d\n", __FUNCTION__, (int) index, find_slop(x, y, rx, ry)); - SkDebugf("%s rxy %d=%d\n", __FUNCTION__, (int) index, find_slop(rx, ry, x, y)); + SkDebugf("%s xy %d=%d\n", __FUNCTION__, (int) index, find_slop(x, y, rx, ry)); + SkDebugf("%s rxy %d=%d\n", __FUNCTION__, (int) index, find_slop(rx, ry, x, y)); double angle = diamond_angle(y, x); double rAngle = diamond_angle(ry, rx); double diff = fabs(angle - rAngle); -- cgit v1.2.3