Skip to content

Commit 9d2b0d9

Browse files
committed
Simplified code
1 parent 7e15c54 commit 9d2b0d9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libImaging/Arrow.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export_imaging_schema(Imaging im, struct ArrowSchema *schema) {
9898
}
9999

100100
/* for now, single block images */
101-
if (!(im->blocks_count == 0 || im->blocks_count == 1)) {
101+
if (im->blocks_count > 1) {
102102
return IMAGING_ARROW_MEMORY_LAYOUT;
103103
}
104104

@@ -157,7 +157,7 @@ export_single_channel_array(Imaging im, struct ArrowArray *array) {
157157
int length = im->xsize * im->ysize;
158158

159159
/* for now, single block images */
160-
if (!(im->blocks_count == 0 || im->blocks_count == 1)) {
160+
if (im->blocks_count > 1) {
161161
return IMAGING_ARROW_MEMORY_LAYOUT;
162162
}
163163

@@ -200,7 +200,7 @@ export_fixed_pixel_array(Imaging im, struct ArrowArray *array) {
200200
int length = im->xsize * im->ysize;
201201

202202
/* for now, single block images */
203-
if (!(im->blocks_count == 0 || im->blocks_count == 1)) {
203+
if (im->blocks_count > 1) {
204204
return IMAGING_ARROW_MEMORY_LAYOUT;
205205
}
206206

0 commit comments

Comments
 (0)