Commit 0a7735f1 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

extmod/modframebuf: Fix signed/unsigned comparison pendantic warning.

Happened with 32-bit gcc 4.8.4.
parent 85d809d1
......@@ -449,7 +449,7 @@ STATIC mp_obj_t framebuf_blit(size_t n_args, const mp_obj_t *args) {
int cx1 = x1;
for (int cx0 = x0; cx0 < x0end; ++cx0) {
color = getpixel(source, cx1, y1);
if (color != key) {
if (color != (uint32_t)key) {
setpixel(self, cx0, y0, color);
}
++cx1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment