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/format.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/format.cc') 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; } -- cgit v1.2.3