From 842164614d19f9934cf1cc7ad91ab9be140bafbe Mon Sep 17 00:00:00 2001 From: vanhofen Date: Mon, 26 Jun 2017 20:53:12 +0200 Subject: [PATCH] timerlist: fix compiler-warning (comparison signed/unsigned int) (cherry picked from commit 3b84c0a7ae63ac9001af3f86285f823ce93503d7) Signed-off-by: Thilo Graf Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/033d6bb3593e3829b8de43f3cb515ec53e9b418b Author: vanhofen Date: 2017-06-26 (Mon, 26 Jun 2017) Origin message was: ------------------ - timerlist: fix compiler-warning (comparison signed/unsigned int) (cherry picked from commit 3b84c0a7ae63ac9001af3f86285f823ce93503d7) Signed-off-by: Thilo Graf --- src/gui/timerlist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/timerlist.cpp b/src/gui/timerlist.cpp index dfbc96a9f..23f6d734a 100644 --- a/src/gui/timerlist.cpp +++ b/src/gui/timerlist.cpp @@ -1161,7 +1161,7 @@ void CTimerList::paintItem(int pos) frameBuffer->paintBoxRel(x, ypos, real_width, item_height, COL_MENUCONTENT_PLUS_0); frameBuffer->paintBoxRel(x, ypos, real_width, item_height, bgcolor, i_radius); // separationline - frameBuffer->paintHLineRel(x, real_width, ypos + item_height - 1, (pos + 1 == listmaxshow) ? bgcolor : COL_MENUCONTENTDARK_PLUS_0); + frameBuffer->paintHLineRel(x, real_width, ypos + item_height - 1, (pos + 1 == (int) listmaxshow) ? bgcolor : COL_MENUCONTENTDARK_PLUS_0); //shadow frameBuffer->paintBoxRel(x + width, ypos + OFFSET_SHADOW, OFFSET_SHADOW, item_height, COL_SHADOW_PLUS_0);