Skip to content

Commit 15edb6d

Browse files
committed
Fixed signedness comparison warning
1 parent 7c53327 commit 15edb6d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/libImaging/Jpeg2KEncode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ j2k_encode_entry(Imaging im, ImagingCodecState state) {
464464
}
465465

466466
if (!context->num_resolutions) {
467-
while (tile_width < (1 << (params.numresolution - 1U)) || tile_height < (1 << (params.numresolution - 1U))) {
467+
while (tile_width < (1U << (params.numresolution - 1U)) || tile_height < (1U << (params.numresolution - 1U))) {
468468
params.numresolution -= 1;
469469
}
470470
}

0 commit comments

Comments
 (0)