Fixes for variable shadowing (5/28)
This commit is contained in:
parent
24ae4bac7f
commit
f4e22cf7cb
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue