From 5e9d7878e67d023db2aae6e3937d4d636c125dcb Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Thu, 23 Jan 2014 14:17:49 +0100 Subject: [PATCH] vfd: fix signed-unsigned comparison warning --- src/driver/vfd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driver/vfd.cpp b/src/driver/vfd.cpp index a4bd866fe..b26e09f52 100644 --- a/src/driver/vfd.cpp +++ b/src/driver/vfd.cpp @@ -709,7 +709,7 @@ void CVFD::ShowText(const char * str) return; } - if (g_settings.lcd_scroll && (strlen(str) > g_info.hw_caps->display_xres)) + if (g_settings.lcd_scroll && ((int)strlen(str) > g_info.hw_caps->display_xres)) flags[0] |= FP_FLAG_SCROLL_ON | FP_FLAG_SCROLL_SIO | FP_FLAG_SCROLL_DELAY; std::string txt = std::string(flags) + str;