diff options
Diffstat (limited to 'include/core/SkFloatingPoint.h')
-rw-r--r-- | include/core/SkFloatingPoint.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/core/SkFloatingPoint.h b/include/core/SkFloatingPoint.h index d3a6fc5f80..68bf6ef2c2 100644 --- a/include/core/SkFloatingPoint.h +++ b/include/core/SkFloatingPoint.h @@ -47,8 +47,8 @@ #define sk_float_floor(x) floorf(x) #define sk_float_ceil(x) ceilf(x) #ifdef SK_BUILD_FOR_MAC - #define sk_float_acos(x) acos(x) - #define sk_float_asin(x) asin(x) + #define sk_float_acos(x) static_cast<float>(acos(x)) + #define sk_float_asin(x) static_cast<float>(asin(x)) #else #define sk_float_acos(x) acosf(x) #define sk_float_asin(x) asinf(x) |