mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 22:47:20 +02:00
Resolve most compiler warnings
This commit is contained in:
parent
b8105812fc
commit
7a64c19641
8 changed files with 34 additions and 34 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue