mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Fixed may be used uninitialized warning
This commit is contained in:
parent
96d683dafa
commit
57c1cf603e
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user