We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79c9b2b commit c56c890Copy full SHA for c56c890
src/_imaging.c
@@ -1578,7 +1578,17 @@ if (PySequence_Check(op)) { \
1578
int bigendian = 0;
1579
if (image->type == IMAGING_TYPE_SPECIAL) {
1580
// I;16*
1581
- bigendian = strcmp(image->mode, "I;16B") == 0;
+ if (strcmp(image->mode, "I;16N") == 0) {
1582
+#ifdef WORDS_BIGENDIAN
1583
+ bigendian = 1;
1584
+#else
1585
+ bigendian = 0;
1586
+#endif
1587
+ } else if (strcmp(image->mode, "I;16B") == 0) {
1588
1589
+ } else {
1590
1591
+ }
1592
}
1593
for (i = x = y = 0; i < n; i++) {
1594
set_value_to_item(seq, i);
0 commit comments