Index: src/animator/SkScriptRuntime.cpp |
diff --git a/src/animator/SkScriptRuntime.cpp b/src/animator/SkScriptRuntime.cpp |
index 061847ec126c7f0e5bff38e2f7628018f7e280c0..78d9d5c2081b092506562c69796c5607ff4aa210 100644 |
--- a/src/animator/SkScriptRuntime.cpp |
+++ b/src/animator/SkScriptRuntime.cpp |
@@ -210,7 +210,7 @@ bool SkScriptRuntime::executeTokens(unsigned char* opCode) { |
return false; |
break; |
case SkScriptEngine2::kScalarToInt: |
- operand[0].fS32 = SkScalarFloor(operand[0].fScalar); |
+ operand[0].fS32 = SkScalarFloorToInt(operand[0].fScalar); |
break; |
// arithmetic ops |
case SkScriptEngine2::kAddInt: |