Fixed may be used uninitialized warning

This commit is contained in:
Andrew Murray 2023-10-07 01:15:04 +11:00
parent 96d683dafa
commit 57c1cf603e

View File

@ -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) {