summaryrefslogtreecommitdiff
path: root/util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'util.cc')
-rw-r--r--util.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/util.cc b/util.cc
index 503d6105..27fdeb81 100644
--- a/util.cc
+++ b/util.cc
@@ -73,7 +73,7 @@ std::string abbreviate(const std::string& str, unsigned int width,
elision_style_t elision_style, const bool is_account,
int abbrev_length)
{
- const int len = str.length();
+ const unsigned int len = str.length();
if (len <= width)
return str;
@@ -110,7 +110,7 @@ std::string abbreviate(const std::string& str, unsigned int width,
parts.push_back(std::string(str, beg));
std::string result;
- int newlen = len;
+ unsigned int newlen = len;
for (std::list<std::string>::iterator i = parts.begin();
i != parts.end();
i++) {