From 05c77351e458c08873c813264005f61f828b5383 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 29 Jan 2009 18:23:57 -0400 Subject: Stopped using the generic "unsigned int" in favor of more specific types. --- src/format.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/format.cc') diff --git a/src/format.cc b/src/format.cc index 6ead3ac8..c9ced082 100644 --- a/src/format.cc +++ b/src/format.cc @@ -323,12 +323,12 @@ void format_t::format(std::ostream& out_str, scope_t& scope) } } -string format_t::truncate(const unistring& ustr, unsigned int width, +string format_t::truncate(const unistring& ustr, std::size_t width, const bool is_account) { assert(width < 4095); - const unsigned int len = ustr.length(); + const std::size_t len = ustr.length(); if (len <= width) return ustr.extract(); @@ -361,7 +361,7 @@ string format_t::truncate(const unistring& ustr, unsigned int width, std::ostringstream result; - unsigned int newlen = len; + std::size_t newlen = len; for (std::list::iterator i = parts.begin(); i != parts.end(); i++) { -- cgit v1.2.3