summaryrefslogtreecommitdiff
path: root/util.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-04-15 02:55:16 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:35:32 -0400
commita087e6ea97494d97580c97705c665cac317a0dc3 (patch)
treed771c7f88f5b6255cb46b2d69aeec9395b3f982d /util.cc
parent691c29a696d2347faebd5663da9d1dc751f275eb (diff)
downloadfork-ledger-a087e6ea97494d97580c97705c665cac317a0dc3.tar.gz
fork-ledger-a087e6ea97494d97580c97705c665cac317a0dc3.tar.bz2
fork-ledger-a087e6ea97494d97580c97705c665cac317a0dc3.zip
Cleared out all warnings; started work on getting Python up again.
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++) {