diff options
-rw-r--r-- | include/private/SkFixed.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/private/SkFixed.h b/include/private/SkFixed.h index 223df1185b..adb0343bc7 100644 --- a/include/private/SkFixed.h +++ b/include/private/SkFixed.h @@ -31,7 +31,7 @@ typedef int32_t SkFixed; #define SK_FixedRoot2Over2 (0xB505) #define SkFixedToFloat(x) ((x) * 1.52587890625e-5f) -#define SkFloatToFixed(x) ((SkFixed)((x) * SK_Fixed1)) +#define SkFloatToFixed(x) sk_float_saturate2int((x) * SK_Fixed1) #ifdef SK_DEBUG static inline SkFixed SkFloatToFixed_Check(float x) { |