diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-06-10 20:31:07 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-06-10 20:34:38 +0300 |
commit | 0a7735f1a67e7c2d6f59205f8d57fca2449cec93 (patch) | |
tree | acdfe0a84b613231547d49f0aaf5bb69de518bea /extmod/modframebuf.c | |
parent | 85d809d1f4e35a511e0a56b3411126e05a31c01b (diff) |
extmod/modframebuf: Fix signed/unsigned comparison pendantic warning.
Happened with 32-bit gcc 4.8.4.
Diffstat (limited to 'extmod/modframebuf.c')
-rw-r--r-- | extmod/modframebuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/modframebuf.c b/extmod/modframebuf.c index b8e84fe1c..a07392675 100644 --- a/extmod/modframebuf.c +++ b/extmod/modframebuf.c @@ -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; |