summaryrefslogtreecommitdiff
path: root/balpair.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-07-27 01:03:41 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-07-27 01:03:41 -0400
commit9e9f25b566987c340a728ab473a34670969fbeee (patch)
treee8d3463dd288dc3415cc8f4181086ae475a8a64d /balpair.h
parent713f89679070e2fe2aa529c4eade1f9efd697898 (diff)
downloadfork-ledger-9e9f25b566987c340a728ab473a34670969fbeee.tar.gz
fork-ledger-9e9f25b566987c340a728ab473a34670969fbeee.tar.bz2
fork-ledger-9e9f25b566987c340a728ab473a34670969fbeee.zip
'make check' is now working again. Also, conversion from amount_t to/from
double has been disabled, because I am no longer packaging the gdtoa library with Ledger (because double conversion really has nothing to do with what Ledger does). If you wish to use it, you can find gdtoa in cpp-rewrite-2006, under a sub-directory of the same name.
Diffstat (limited to 'balpair.h')
-rw-r--r--balpair.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/balpair.h b/balpair.h
index 53acb701..0303f6da 100644
--- a/balpair.h
+++ b/balpair.h
@@ -109,9 +109,11 @@ public:
: balance_t(amt), cost(cost_amt) {
TRACE_CTOR(balance_pair_t, "const amount_t&, const amount_t&");
}
+#ifdef HAVE_GDTOA
balance_pair_t(const double val) : balance_t(val) {
TRACE_CTOR(balance_pair_t, "const double");
}
+#endif
balance_pair_t(const unsigned long val) : balance_t(val) {
TRACE_CTOR(balance_pair_t, "const unsigned long");
}