Resolve most compiler warnings

This commit is contained in:
Wilhelm Schuermann 2015-03-29 22:05:38 +02:00
parent b8105812fc
commit 7a64c19641
8 changed files with 34 additions and 34 deletions

View file

@ -956,7 +956,7 @@ std::string rightJustify (const int input, const int width)
std::string rightJustify (const std::string& input, const int width)
{
unsigned int len = utf8_text_width (input);
return ((width > len)
return (((unsigned int) width > len)
? std::string (width - len, ' ')
: "")
+ input;