Fixes for variable shadowing (5/28)

This commit is contained in:
John Wiegley 2012-02-17 14:26:23 -06:00
parent 24ae4bac7f
commit f4e22cf7cb

View file

@ -1179,9 +1179,9 @@ bool amount_t::parse(std::istream& in, const parse_flags_t& flags)
mpq_div(MP(new_quantity.get()), MP(new_quantity.get()), tempq); mpq_div(MP(new_quantity.get()), MP(new_quantity.get()), tempq);
IF_DEBUG("amount.parse") { IF_DEBUG("amount.parse") {
char * buf = mpq_get_str(NULL, 10, MP(new_quantity.get())); char * amt_buf = mpq_get_str(NULL, 10, MP(new_quantity.get()));
DEBUG("amount.parse", "Rational parsed = " << buf); DEBUG("amount.parse", "Rational parsed = " << amt_buf);
std::free(buf); std::free(amt_buf);
} }
} else { } else {
mpq_set_str(MP(new_quantity.get()), quant.c_str(), 10); mpq_set_str(MP(new_quantity.get()), quant.c_str(), 10);