diff options
Diffstat (limited to 'tests/InsetConvexPolyTest.cpp')
-rw-r--r-- | tests/InsetConvexPolyTest.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/InsetConvexPolyTest.cpp b/tests/InsetConvexPolyTest.cpp index e13a25a70f..5376789943 100644 --- a/tests/InsetConvexPolyTest.cpp +++ b/tests/InsetConvexPolyTest.cpp @@ -23,8 +23,7 @@ static bool is_convex(const SkTDArray<SkPoint>& poly) { SkVector v0 = poly[j] - poly[i]; SkVector v1 = poly[k] - poly[i]; SkScalar perpDot = v0.cross(v1); - int side = winding*perpDot; - if (side < 0) { + if (winding*perpDot < 0) { return false; } } |