Skip to content

Commit

Permalink
Use default value
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Karpinsky <[email protected]>
  • Loading branch information
radarhere and homm authored Oct 7, 2023
1 parent 57c1cf6 commit d9283fd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/_imaging.c
Original file line number Diff line number Diff line change
Expand Up @@ -1575,7 +1575,10 @@ if (PySequence_Check(op)) { \
}
double value;
if (image->bands == 1) {
int bigendian = image->type == IMAGING_TYPE_SPECIAL && strcmp(image->mode, "I;16B") == 0;
int bigendian = 0;
if (image->type == IMAGING_TYPE_SPECIAL) {
bigendian = 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 d9283fd

Please sign in to comment.