diff options
author | John Wiegley <johnw@newartisans.com> | 2009-01-29 18:23:57 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-01-29 18:23:57 -0400 |
commit | 05c77351e458c08873c813264005f61f828b5383 (patch) | |
tree | fa83d3826d8c113b5ec273671ce6cab3d9fe5388 /src/format.cc | |
parent | 119b5dc1975bfc00fb3f376e6ba28594dee12583 (diff) | |
download | fork-ledger-05c77351e458c08873c813264005f61f828b5383.tar.gz fork-ledger-05c77351e458c08873c813264005f61f828b5383.tar.bz2 fork-ledger-05c77351e458c08873c813264005f61f828b5383.zip |
Stopped using the generic "unsigned int" in favor of more specific types.
Diffstat (limited to 'src/format.cc')
-rw-r--r-- | src/format.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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<string>::iterator i = parts.begin(); i != parts.end(); i++) { |