diff options
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkFloatingPoint.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/core/SkFloatingPoint.h b/include/core/SkFloatingPoint.h index 96270b09e2..02880f3d23 100644 --- a/include/core/SkFloatingPoint.h +++ b/include/core/SkFloatingPoint.h @@ -91,7 +91,7 @@ extern const uint32_t gIEEENotANumber; extern const uint32_t gIEEEInfinity; extern const uint32_t gIEEENegativeInfinity; -#define SK_FloatNaN (*reinterpret_cast<const float*>(&gIEEENotANumber)) -#define SK_FloatInfinity (*reinterpret_cast<const float*>(&gIEEEInfinity)) -#define SK_FloatNegativeInfinity (*reinterpret_cast<const float*>(&gIEEENegativeInfinity)) +#define SK_FloatNaN (*SkTCast<const float*>(&gIEEENotANumber)) +#define SK_FloatInfinity (*SkTCast<const float*>(&gIEEEInfinity)) +#define SK_FloatNegativeInfinity (*SkTCast<const float*>(&gIEEENegativeInfinity)) #endif |