From 28fe461a682d115e3d5221696bae753e1606a80d Mon Sep 17 00:00:00 2001 From: casey langen Date: Wed, 6 Mar 2019 19:53:13 -0800 Subject: [PATCH] Fixed compiler warning. --- src/musikcube/cursespp/Scrollbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/musikcube/cursespp/Scrollbar.cpp b/src/musikcube/cursespp/Scrollbar.cpp index ec4269d7a..e85f9fe2b 100644 --- a/src/musikcube/cursespp/Scrollbar.cpp +++ b/src/musikcube/cursespp/Scrollbar.cpp @@ -66,7 +66,7 @@ void Scrollbar::Draw(ListWindow* list, Window* target) { /* thumb */ int thumbY = -1; - if (itemCount > trackHeight) { + if ((int) itemCount > trackHeight) { float percent = (float) pos.logicalIndex / (float) itemCount; thumbY = (int) ((float) trackHeight * percent) + trackMinY; }