summaryrefslogtreecommitdiff
path: root/src/format.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-03-04 04:31:34 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-03-04 04:31:34 -0400
commit9d4e888ef57ef70acb22830c5bfb5e917208113e (patch)
treeb82484469989cfa6f546d1827dfd382b3de8dfe1 /src/format.cc
parent2d63c9364af57c732003afc7adddeb8ce62a1988 (diff)
downloadfork-ledger-9d4e888ef57ef70acb22830c5bfb5e917208113e.tar.gz
fork-ledger-9d4e888ef57ef70acb22830c5bfb5e917208113e.tar.bz2
fork-ledger-9d4e888ef57ef70acb22830c5bfb5e917208113e.zip
Cured several harmless compiler warnings
Diffstat (limited to 'src/format.cc')
-rw-r--r--src/format.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/format.cc b/src/format.cc
index 4a48808a..79f95375 100644
--- a/src/format.cc
+++ b/src/format.cc
@@ -360,7 +360,8 @@ void format_t::format(std::ostream& out_str, scope_t& scope)
result = truncate(temp, elem->max_width);
} else {
result = temp.extract();
- for (int i = 0; i < (int)elem->min_width - (int)temp.length(); i++)
+ for (int i = 0; i < (static_cast<int>(elem->min_width) -
+ static_cast<int>(temp.length())); i++)
result += " ";
}
out_str << result;