fix warngs by casting from float to int64_t
authorreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 3 Aug 2012 13:55:37 +0000 (13:55 +0000)
committerreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 3 Aug 2012 13:55:37 +0000 (13:55 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@4945 2bbb7eff-a529-9590-31e7-b0007b416f81

include/core/SkFixed.h

index 0fdfad8..c15d469 100644 (file)
@@ -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;