diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-01-08 20:31:53 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-01-08 20:31:53 +0000 |
commit | 50c79d886bf435d3a9cad056885370e2c3f526ad (patch) | |
tree | 628f039081e19dc3d447cb8d33d0e94122732c3c /tests | |
parent | 15655b241bfe1d77032e88115f119684722c10e0 (diff) |
Enable warnings-as-errors on Windows.
Review URL: https://codereview.appspot.com/7066054
git-svn-id: http://skia.googlecode.com/svn/trunk@7094 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests')
-rw-r--r-- | tests/PathTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/PathTest.cpp b/tests/PathTest.cpp index 6f9a9e6465..a83a0a4fc6 100644 --- a/tests/PathTest.cpp +++ b/tests/PathTest.cpp @@ -239,6 +239,7 @@ static void test_rect_isfinite(skiatest::Reporter* reporter) { static void test_path_isfinite(skiatest::Reporter* reporter) { const SkScalar inf = SK_ScalarInfinity; + const SkScalar negInf = SK_ScalarNegativeInfinity; const SkScalar nan = SK_ScalarNaN; SkPath path; @@ -252,7 +253,7 @@ static void test_path_isfinite(skiatest::Reporter* reporter) { REPORTER_ASSERT(reporter, path.isFinite()); path.reset(); - path.moveTo(inf, -inf); + path.moveTo(inf, negInf); REPORTER_ASSERT(reporter, !path.isFinite()); path.reset(); |