Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 19, 2024
1 parent ebd1eed commit 0e86ed9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/_imaging.c
Original file line number Diff line number Diff line change
Expand Up @@ -3845,7 +3845,8 @@ _compare_pixels(
const int ysize,
const int linesize,
const UINT8 **pixels_a,
const UINT8 **pixels_b) {
const UINT8 **pixels_b
) {
// Fortunately, all of the modes that have extra bytes in their pixels
// use four bytes for their pixels.
UINT32 mask = 0xffffffff;
Expand Down Expand Up @@ -3927,7 +3928,8 @@ image_richcompare(const ImagingObject *self, const PyObject *other, const int op
1,
palette_a->size * 4,
palette_a_data_ptr,
palette_b_data_ptr)) {
palette_b_data_ptr
)) {
if (op == Py_EQ) {
Py_RETURN_FALSE;

Check warning on line 3934 in src/_imaging.c

View check run for this annotation

Codecov / codecov/patch

src/_imaging.c#L3934

Added line #L3934 was not covered by tests
} else {
Expand All @@ -3941,7 +3943,8 @@ image_richcompare(const ImagingObject *self, const PyObject *other, const int op
img_a->ysize,
img_a->linesize,
(const UINT8 **)img_a->image,
(const UINT8 **)img_b->image)) {
(const UINT8 **)img_b->image
)) {
if (op == Py_EQ) {
Py_RETURN_FALSE;
} else {
Expand Down

0 comments on commit 0e86ed9

Please sign in to comment.