summaryrefslogtreecommitdiff
path: root/src/commodity.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-17 21:28:43 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-17 21:28:43 -0500
commitb2ba07b90c11b4645a7ae4310e8422c8d5f62f35 (patch)
treedf89710da788bea1200e0a8dceda34c2e8128482 /src/commodity.cc
parent6b557f810e1c6eb2dcd8a24eeeacfcf9cc8210e3 (diff)
downloadfork-ledger-b2ba07b90c11b4645a7ae4310e8422c8d5f62f35.tar.gz
fork-ledger-b2ba07b90c11b4645a7ae4310e8422c8d5f62f35.tar.bz2
fork-ledger-b2ba07b90c11b4645a7ae4310e8422c8d5f62f35.zip
Fixed several time and date duration type uses
Diffstat (limited to 'src/commodity.cc')
-rw-r--r--src/commodity.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commodity.cc b/src/commodity.cc
index 49e82b53..b76c7896 100644
--- a/src/commodity.cc
+++ b/src/commodity.cc
@@ -637,7 +637,8 @@ bool compare_amount_commodities::operator()(const amount_t * left,
return false;
if (aleftcomm.details.date && arightcomm.details.date) {
- date_duration_t diff = *aleftcomm.details.date - *arightcomm.details.date;
+ gregorian::date_duration diff =
+ *aleftcomm.details.date - *arightcomm.details.date;
return diff.is_negative();
}