From a087e6ea97494d97580c97705c665cac317a0dc3 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 15 Apr 2007 02:55:16 +0000 Subject: Cleared out all warnings; started work on getting Python up again. --- util.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util.cc') 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::iterator i = parts.begin(); i != parts.end(); i++) { -- cgit v1.2.3