diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-19 03:37:16 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-19 03:37:16 -0500 |
commit | cc9110a43a1e2d006de8d24a84bbfb2c6918cf33 (patch) | |
tree | 4230ae03ebea8e2cbc0b6e1de821730e4819af47 /src/commodity.cc | |
parent | 6b557f810e1c6eb2dcd8a24eeeacfcf9cc8210e3 (diff) | |
parent | 63fee4c83775f79364199ea547dbc7e068b0abc8 (diff) | |
download | ledger-cc9110a43a1e2d006de8d24a84bbfb2c6918cf33.tar.gz ledger-cc9110a43a1e2d006de8d24a84bbfb2c6918cf33.tar.bz2 ledger-cc9110a43a1e2d006de8d24a84bbfb2c6918cf33.zip |
Merge branch 'next'
Diffstat (limited to 'src/commodity.cc')
-rw-r--r-- | src/commodity.cc | 3 |
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(); } |