Skip to content

Commit 51259af

Browse files
Merge branch 'main' into stefannikolei/arm/colorconvertergrayscale
2 parents bfd7658 + 9756ae9 commit 51259af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ImageSharp/Formats/Webp/Lossless/LosslessUtils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1456,7 +1456,7 @@ private static uint ClampedAddSubtractHalf(uint c0, uint c1, uint c2)
14561456
}
14571457

14581458
[MethodImpl(InliningOptions.ShortMethod)]
1459-
private static int AddSubtractComponentHalf(int a, int b) => (int)Clip255((uint)(a + ((a - b) >> 1))); // >> 1 is bit-hack for / 2
1459+
private static int AddSubtractComponentHalf(int a, int b) => (int)Clip255((uint)(a + ((a - b) / 2)));
14601460

14611461
[MethodImpl(InliningOptions.ShortMethod)]
14621462
private static int AddSubtractComponentFull(int a, int b, int c) => (int)Clip255((uint)(a + b - c));

0 commit comments

Comments
 (0)