diff options
Diffstat (limited to 'tests/PointTest.cpp')
-rw-r--r-- | tests/PointTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/PointTest.cpp b/tests/PointTest.cpp index 76ac3a1a79..4981e89dde 100644 --- a/tests/PointTest.cpp +++ b/tests/PointTest.cpp @@ -14,8 +14,8 @@ static void test_casts(skiatest::Reporter* reporter) { SkPoint p = { 0, 0 }; SkRect r = { 0, 0, 0, 0 }; - const SkScalar* pPtr = SkTCast<const SkScalar*>(&p); - const SkScalar* rPtr = SkTCast<const SkScalar*>(&r); + const SkScalar* pPtr = reinterpret_cast<const SkScalar*>(&p); + const SkScalar* rPtr = reinterpret_cast<const SkScalar*>(&r); REPORTER_ASSERT(reporter, SkPointPriv::AsScalars(p) == pPtr); REPORTER_ASSERT(reporter, r.asScalars() == rPtr); |