vfd: fix signed-unsigned comparison warning

This commit is contained in:
Stefan Seyfried
2014-01-23 14:17:49 +01:00
parent c45ccf6a0d
commit 5e9d7878e6

View File

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