diff options
Diffstat (limited to 'tests/ScalarTest.cpp')
-rw-r--r-- | tests/ScalarTest.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ScalarTest.cpp b/tests/ScalarTest.cpp index 524d775549..c56641d7ba 100644 --- a/tests/ScalarTest.cpp +++ b/tests/ScalarTest.cpp @@ -21,6 +21,7 @@ struct PointSet { }; static void test_isRectFinite(skiatest::Reporter* reporter) { +#ifdef SK_SCALAR_IS_FLOAT static const SkPoint gF0[] = { { 0, 0 }, { 1, 1 } }; @@ -61,6 +62,7 @@ static void test_isRectFinite(skiatest::Reporter* reporter) { bool rectIsFinite = !r.isEmpty(); REPORTER_ASSERT(reporter, gSets[i].fIsFinite == rectIsFinite); } +#endif } static bool isFinite_int(float x) { |