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);
IF_DEBUG("amount.parse") {
char * buf = mpq_get_str(NULL, 10, MP(new_quantity.get()));
DEBUG("amount.parse", "Rational parsed = " << buf);
std::free(buf);
char * amt_buf = mpq_get_str(NULL, 10, MP(new_quantity.get()));
DEBUG("amount.parse", "Rational parsed = " << amt_buf);
std::free(amt_buf);
}
} else {
mpq_set_str(MP(new_quantity.get()), quant.c_str(), 10);