diff options
Diffstat (limited to 'include/core/SkFixed.h')
-rw-r--r-- | include/core/SkFixed.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/core/SkFixed.h b/include/core/SkFixed.h index 0fdfad8f16..c15d469d8d 100644 --- a/include/core/SkFixed.h +++ b/include/core/SkFixed.h @@ -43,7 +43,7 @@ typedef int32_t SkFixed; #ifdef SK_DEBUG static inline SkFixed SkFloatToFixed_Check(float x) { - int64_t n64 = x * SK_Fixed1; + int64_t n64 = (int64_t)(x * SK_Fixed1); SkFixed n32 = (SkFixed)n64; SkASSERT(n64 == n32); return n32; |