Merge pull request #7444 from radarhere/bgr

This commit is contained in:
Hugo van Kemenade 2023-10-14 01:30:31 +02:00 committed by GitHub
commit 8e5570e23b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1575,7 +1575,7 @@ if (PySequence_Check(op)) { \
} }
double value; double value;
if (image->bands == 1) { if (image->bands == 1) {
int bigendian; int bigendian = 0;
if (image->type == IMAGING_TYPE_SPECIAL) { if (image->type == IMAGING_TYPE_SPECIAL) {
// I;16* // I;16*
bigendian = strcmp(image->mode, "I;16B") == 0; bigendian = strcmp(image->mode, "I;16B") == 0;