Skip to content

Commit 6b486e3

Browse files
Fix failing conversion tests
1 parent 758896e commit 6b486e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/ImageSharp.Tests/PixelFormats/Rgb96Tests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public void Rgb96_FromScaledVector4(uint r, uint g, uint b)
7575
public void Rgb96_ToRgba32()
7676
{
7777
// arrange
78-
Rgb96 rgb96 = new((uint)(uint.MaxValue * 0.1f), uint.MaxValue / 2, uint.MaxValue);
78+
Rgb96 rgb96 = new((uint)(uint.MaxValue * 0.1), uint.MaxValue / 2, uint.MaxValue);
7979
Rgba32 expected = new(25, 127, 255, 255);
8080

8181
// act

tests/ImageSharp.Tests/PixelFormats/Rgba128Tests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public void Rgba128_FromScaledVector4(uint r, uint g, uint b, uint a)
7676
public void Rgba128_ToRgba32()
7777
{
7878
// arrange
79-
Rgba128 rgb96 = new((uint)(uint.MaxValue * 0.1f), uint.MaxValue / 2, uint.MaxValue, uint.MaxValue);
79+
Rgba128 rgb96 = new((uint)(uint.MaxValue * 0.1), uint.MaxValue / 2, uint.MaxValue, uint.MaxValue);
8080
Rgba32 expected = new(25, 127, 255, 255);
8181

8282
// act

0 commit comments

Comments
 (0)