From fd2e6c25024eefa5dfc36bed892360451862cb88 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 10 Aug 2008 02:52:38 -0400 Subject: 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. --- src/token.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/token.cc') 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(in.tellg()); + pos = in.tellg(); amount_t::flags_t parse_flags = 0; if (pflags & EXPR_PARSE_NO_MIGRATE) -- cgit v1.2.3