Skip to content
This repository was archived by the owner on Oct 28, 2023. It is now read-only.

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy