Skip to content

Commit

Permalink
Fixed may be used uninitialized warning
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Oct 6, 2023
1 parent 96d683d commit 57c1cf6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/_imaging.c
Original file line number Diff line number Diff line change
Expand Up @@ -1575,11 +1575,7 @@ if (PySequence_Check(op)) { \
}
double value;
if (image->bands == 1) {
int bigendian;
if (image->type == IMAGING_TYPE_SPECIAL) {
// I;16*
bigendian = strcmp(image->mode, "I;16B") == 0;
}
int bigendian = image->type == IMAGING_TYPE_SPECIAL && strcmp(image->mode, "I;16B") == 0;
for (i = x = y = 0; i < n; i++) {
set_value_to_item(seq, i);
if (scale != 1.0 || offset != 0.0) {
Expand Down

0 comments on commit 57c1cf6

Please sign in to comment.