Skip to content

Commit 0a7735f

Browse files
committed
extmod/modframebuf: Fix signed/unsigned comparison pendantic warning.
Happened with 32-bit gcc 4.8.4.
1 parent 85d809d commit 0a7735f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extmod/modframebuf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ STATIC mp_obj_t framebuf_blit(size_t n_args, const mp_obj_t *args) {
449449
int cx1 = x1;
450450
for (int cx0 = x0; cx0 < x0end; ++cx0) {
451451
color = getpixel(source, cx1, y1);
452-
if (color != key) {
452+
if (color != (uint32_t)key) {
453453
setpixel(self, cx0, y0, color);
454454
}
455455
++cx1;

0 commit comments

Comments
 (0)