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

Happened with 32-bit gcc 4.8.4.
This commit is contained in:
Paul Sokolovsky 2017-06-10 20:31:07 +03:00
parent 85d809d1f4
commit 0a7735f1a6
1 changed files with 1 additions and 1 deletions

View File

@ -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;