summaryrefslogtreecommitdiff
path: root/src/token.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/token.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/token.cc')
-rw-r--r--src/token.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/token.cc b/src/token.cc
index d1d70a38..87ea2f62 100644
--- a/src/token.cc
+++ b/src/token.cc
@@ -306,12 +306,12 @@ void expr_t::token_t::next(std::istream& in, const uint_least8_t pflags)
default: {
amount_t temp;
- unsigned long pos = 0;
+ istream_pos_type pos = 0;
// When in relaxed parsing mode, we want to migrate commodity
// flags so that any precision specified by the user updates the
// current maximum displayed precision.
- pos = static_cast<unsigned long>(in.tellg());
+ pos = in.tellg();
amount_t::flags_t parse_flags = 0;
if (pflags & EXPR_PARSE_NO_MIGRATE)