diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-09-26 13:08:56 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-09-26 13:08:56 +0000 |
commit | 373ebc634573364c27b1ebd35bb537ef1285cba4 (patch) | |
tree | de677b3d81e81875c85dee3c838959425057a9f7 /tests/MatrixTest.cpp | |
parent | 5c83dcc371b68e4cda2d533e247684ea1a32d1bc (diff) |
Suppress some warnings on linux.
R=reed@google.com
Review URL: https://codereview.appspot.com/6572046
git-svn-id: http://skia.googlecode.com/svn/trunk@5687 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/MatrixTest.cpp')
-rw-r--r-- | tests/MatrixTest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/MatrixTest.cpp b/tests/MatrixTest.cpp index 30542dccae..744f765ac7 100644 --- a/tests/MatrixTest.cpp +++ b/tests/MatrixTest.cpp @@ -44,8 +44,8 @@ static bool are_equal(skiatest::Reporter* reporter, for (int i = 0; i < 9; ++i) { float aVal = a.get(i); float bVal = b.get(i); - int aValI = *reinterpret_cast<int*>(&aVal); - int bValI = *reinterpret_cast<int*>(&bVal); + int aValI = *SkTCast<int*>(&aVal); + int bValI = *SkTCast<int*>(&bVal); if (0 == aVal && 0 == bVal && aValI != bValI) { foundZeroSignDiff = true; } else { @@ -58,8 +58,8 @@ static bool are_equal(skiatest::Reporter* reporter, for (int i = 0; i < 9; ++i) { float aVal = a.get(i); float bVal = b.get(i); - int aValI = *reinterpret_cast<int*>(&aVal); - int bValI = *reinterpret_cast<int*>(&bVal); + int aValI = *SkTCast<int*>(&aVal); + int bValI = *SkTCast<int*>(&bVal); if (sk_float_isnan(aVal) && aValI == bValI) { foundNaN = true; } else { |