Skip to content

Commit 8882fa7

Browse files
committed
Adjust double -> float to avoid the upcast
1 parent a72ca46 commit 8882fa7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/AnimatedTypeHelpers.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ internal static bool IsValidAnimationValueRotation3D(Rotation3D value)
683683

684684
internal static bool IsValidAnimationValueSingle(float value)
685685
{
686-
return double.IsFinite(value);
686+
return float.IsFinite(value);
687687
}
688688

689689
internal static bool IsValidAnimationValueSize(Size value)

0 commit comments

Comments
 (0)