Index: Source/platform/animation/AnimationUtilities.h |
diff --git a/Source/platform/animation/AnimationUtilities.h b/Source/platform/animation/AnimationUtilities.h |
index 4d6b77e73d507dc72d3f94dbbc2d18b795981e8e..ca0ff2af7c414e4cd5f51cb3ec3214311994ac35 100644 |
--- a/Source/platform/animation/AnimationUtilities.h |
+++ b/Source/platform/animation/AnimationUtilities.h |
@@ -44,7 +44,7 @@ inline int blend(int from, int to, double progress) |
template <typename T> |
inline T blend(T from, T to, double progress) |
{ |
- COMPILE_ASSERT(WTF::IsInteger<T>::value, BlendForUnsignedTypes); |
+ static_assert(WTF::IsInteger<T>::value, "blend can only be used with integer types"); |
return clampTo<T>(round(to > from ? from + (to - from) * progress : from - (from - to) * progress)); |
} |