Skip to content

Commit 4aebc13

Browse files
Fix base unpremultiply benchmark
1 parent 59fa1fd commit 4aebc13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/ImageSharp.Benchmarks/Color/Bulk/UnPremultiplyVector4.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public void UnPremultiply()
3636
private static void UnPremultiply(ref Vector4 source)
3737
{
3838
float w = source.W;
39-
source *= w;
39+
source /= w;
4040
source.W = w;
4141
}
4242

0 commit comments

Comments
 (0)