summaryrefslogtreecommitdiff
path: root/src/format.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-08-10 02:52:38 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-08-10 02:52:38 -0400
commitfd2e6c25024eefa5dfc36bed892360451862cb88 (patch)
tree4fb09cea0a20569fca59eedd73896e92b10565ad /src/format.cc
parentba02f0a45036a1f9c64cd56533990d3284bcc4cf (diff)
downloadfork-ledger-fd2e6c25024eefa5dfc36bed892360451862cb88.tar.gz
fork-ledger-fd2e6c25024eefa5dfc36bed892360451862cb88.tar.bz2
fork-ledger-fd2e6c25024eefa5dfc36bed892360451862cb88.zip
Ledger now builds without any significant warnings, except for one file. Some
of the warnings had to be temporarily disabled, but will be checked again once the code has moved into master.
Diffstat (limited to 'src/format.cc')
-rw-r--r--src/format.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/format.cc b/src/format.cc
index 65dfce95..81aa5c26 100644
--- a/src/format.cc
+++ b/src/format.cc
@@ -210,8 +210,8 @@ format_t::element_t * format_t::parse_elements(const string& fmt)
std::istringstream str(p);
current->type = element_t::EXPR;
current->expr.parse(str);
- current->expr.set_text(string(p, p + str.tellg()));
- p += str.tellg();
+ current->expr.set_text(string(p, p + long(str.tellg())));
+ p += long(str.tellg());
break;
}