From 38122c22241cb8fe64f0d17cd3b084418f49edaa Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 28 Feb 2009 04:54:54 -0400 Subject: Corrected warnings g++-4.3.3 was complaining about --- src/textual.cc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/textual.cc') diff --git a/src/textual.cc b/src/textual.cc index b3294d99..e3460202 100644 --- a/src/textual.cc +++ b/src/textual.cc @@ -919,7 +919,7 @@ post_t * instance_t::parse_post(char * line, if (stream.eof()) { next = NULL; } else { - next = skip_ws(next + stream.tellg()); + next = skip_ws(next + static_cast(stream.tellg())); // Parse the optional cost (@ PER-UNIT-COST, @@ TOTAL-COST) @@ -967,7 +967,7 @@ post_t * instance_t::parse_post(char * line, if (cstream.eof()) next = NULL; else - next = skip_ws(p + cstream.tellg()); + next = skip_ws(p + static_cast(cstream.tellg())); } else { throw parse_error(_("Expected a cost amount")); } @@ -1056,7 +1056,7 @@ post_t * instance_t::parse_post(char * line, if (stream.eof()) next = NULL; else - next = skip_ws(p + stream.tellg()); + next = skip_ws(p + static_cast(stream.tellg())); } else { throw parse_error(_("Expected an assigned balance amount")); } @@ -1081,9 +1081,10 @@ post_t * instance_t::parse_post(char * line, post->end_pos = curr_pos; post->end_line = linenum; - if (! tag_stack.empty()) + if (! tag_stack.empty()) { foreach (const string& tag, tag_stack) post->parse_tags(tag.c_str()); + } TRACE_STOP(post_details, 1); @@ -1240,9 +1241,10 @@ xact_t * instance_t::parse_xact(char * line, xact->end_pos = curr_pos; xact->end_line = linenum; - if (! tag_stack.empty()) + if (! tag_stack.empty()) { foreach (const string& tag, tag_stack) xact->parse_tags(tag.c_str()); + } TRACE_STOP(xact_details, 1); -- cgit v1.2.3