fix warngs by casting from float to int64_t
git-svn-id: http://skia.googlecode.com/svn/trunk@4945 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
b196374e6f
commit
dea8e252e1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user