summaryrefslogtreecommitdiff
path: root/src/amount.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-06 23:04:27 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-03-06 23:04:27 -0600
commit71d0033b6f65260698cf0bf367002a9b6429a3fd (patch)
tree63fc939f0e613a1828fc0b7b473bc6c29578f074 /src/amount.cc
parent488355e5d92923e1d764625457b866f4fc83d58b (diff)
downloadfork-ledger-71d0033b6f65260698cf0bf367002a9b6429a3fd.tar.gz
fork-ledger-71d0033b6f65260698cf0bf367002a9b6429a3fd.tar.bz2
fork-ledger-71d0033b6f65260698cf0bf367002a9b6429a3fd.zip
Corrected several compile and link problems
Diffstat (limited to 'src/amount.cc')
-rw-r--r--src/amount.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amount.cc b/src/amount.cc
index f9e2309b..313f8d27 100644
--- a/src/amount.cc
+++ b/src/amount.cc
@@ -120,11 +120,13 @@ namespace {
{
char * buf = NULL;
try {
+#if defined(DEBUG_ON)
IF_DEBUG("amount.convert") {
char * tbuf = mpq_get_str(NULL, 10, quant);
DEBUG("amount.convert", "Rational to convert = " << tbuf);
std::free(tbuf);
}
+#endif
// Convert the rational number to a floating-point, extending the
// floating-point to a large enough size to get a precise answer.