diff --git a/src/_imaging.c b/src/_imaging.c index 7d75f4131b5..3ca1a7ac0ad 100644 --- a/src/_imaging.c +++ b/src/_imaging.c @@ -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) {