Index: Source/core/platform/animation/AnimationUtilities.h |
diff --git a/Source/core/platform/animation/AnimationUtilities.h b/Source/core/platform/animation/AnimationUtilities.h |
index 4cdc8291a5e8f3fc7fdc75914b703d0a5db630e0..4c86e770b432459036debc7e8293ba356215aef6 100644 |
--- a/Source/core/platform/animation/AnimationUtilities.h |
+++ b/Source/core/platform/animation/AnimationUtilities.h |
@@ -39,7 +39,7 @@ inline int blend(int from, int to, double progress) |
inline unsigned blend(unsigned from, unsigned to, double progress) |
{ |
- return lround(to > from ? from + (to - from) * progress : from - (from - to) * progress); |
+ return clampTo<unsigned>(round(to > from ? from + (to - from) * progress : from - (from - to) * progress)); |
} |
inline double blend(double from, double to, double progress) |