From 6c7b3716b3c7f63c6c946d63aca8d8e09b67b9cb Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Sat, 19 Nov 2016 23:46:50 +0100 Subject: [PATCH] Prevening compiler warning --- src/gwin/gwin_widget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gwin/gwin_widget.c b/src/gwin/gwin_widget.c index c3704536..9a203aca 100644 --- a/src/gwin/gwin_widget.c +++ b/src/gwin/gwin_widget.c @@ -318,7 +318,7 @@ static void gwidgetEvent(void *param, GEvent *pe) { return; // Use the very simplest possible focus rectangle for now - for (i = 0; i < GWIN_FOCUS_HIGHLIGHT_WIDTH; i++) { + for (i = 0; i < (uint16_t)GWIN_FOCUS_HIGHLIGHT_WIDTH; i++) { gdispGDrawBox(gx->g.display, gx->g.x+x+i, gx->g.y+y+i, cx-2*i, cy-2*i, gx->pstyle->focus); } }