Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Oct 7, 2023
1 parent 41f0635 commit 9f0d0d1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/_imaging.c
Original file line number Diff line number Diff line change
Expand Up @@ -3760,9 +3760,10 @@ _compare_pixels(
// Fortunately, all of the modes that have extra bytes in their pixels use four bytes for their pixels.
UINT32 mask = 0xffffffff;
if (
!strcmp(mode, "RGB") || !strcmp(mode, "YCbCr") ||
!strcmp(mode, "RGB") || !strcmp(mode, "BGR;24") || !strcmp(mode, "YCbCr") ||
!strcmp(mode, "HSV") || !strcmp(mode, "LAB")
) {
printf("threeinfour\n");
// These modes have three channels in four bytes,
// so we have to ignore the last byte.
#ifdef WORDS_BIGENDIAN
Expand All @@ -3774,6 +3775,9 @@ _compare_pixels(
// These modes have two channels in four bytes,
// so we have to ignore the middle two bytes.
mask = 0xff0000ff;
printf("twoinfour\n");
} else {
printf("else\n");
}

if (mask == 0xffffffff) {
Expand Down

0 comments on commit 9f0d0d1

Please sign in to comment.