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/commodity.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/commodity.cc') diff --git a/src/commodity.cc b/src/commodity.cc index 524e333a..1c849624 100644 --- a/src/commodity.cc +++ b/src/commodity.cc @@ -526,7 +526,7 @@ void commodity_t::parse_symbol(std::istream& in, string& symbol) throw_(amount_error, _("Quoted commodity symbol lacks closing quote")); } else { char * _p = buf; - c = in.peek(); + c = static_cast(in.peek()); while (_p - buf < 255 && in.good() && ! in.eof() && c != '\n') { int bytes = 0; int size = _p - buf; @@ -570,7 +570,7 @@ void commodity_t::parse_symbol(std::istream& in, string& symbol) *_p++ = c; } - c = in.peek(); + c = static_cast(in.peek()); } *_p = '\0'; -- cgit v1.2.3