Skip to content

Commit c75de11

Browse files
committed
Avoid compiler warning about signed/unsigned mismatch
This works around a compiler warning in MMBitmap.c:71: '<=': signed/unsigned mismatch Signed-off-by: Johannes Schindelin <[email protected]>
1 parent c3fc2ab commit c75de11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MMBitmap.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ MMBitmapRef copyMMBitmapFromPortion(MMBitmapRef source, MMRect rect);
4747
#define MMBitmapPointInBounds(image, p) ((p).x < (image)->width && \
4848
(p).y < (image)->height)
4949
#define MMBitmapRectInBounds(image, r) \
50-
(((r).origin.x + (r).size.width <= (image)->width) && \
51-
((r).origin.y + (r).size.height <= (image)->height))
50+
(((r).origin.x + (r).size.width <= (int64_t)(image)->width) && \
51+
((r).origin.y + (r).size.height <= (int64_t)(image)->height))
5252

5353
#define MMBitmapGetBounds(image) MMRectMake(0, 0, image->width, image->height)
5454

0 commit comments

Comments
 (0)