diff options
author | John Wiegley <johnw@newartisans.com> | 2008-03-27 23:49:25 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 05:11:08 -0400 |
commit | 96c0d67b96d8396b15aa05f07abd0beb72e54cf4 (patch) | |
tree | 3c79a6996003348a55b030b9565bd2e5eb816df2 | |
parent | f879b2f149cf9d26211e6deda9510ac336b74975 (diff) | |
download | fork-ledger-96c0d67b96d8396b15aa05f07abd0beb72e54cf4.tar.gz fork-ledger-96c0d67b96d8396b15aa05f07abd0beb72e54cf4.tar.bz2 fork-ledger-96c0d67b96d8396b15aa05f07abd0beb72e54cf4.zip |
Added a fix to allowing building on the latest version of BSD.
-rw-r--r-- | datetime.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -96,7 +96,7 @@ class date_t operator bool() const { return when != 0; } - operator std::time_t() const { + operator std::time_t() { return when; } operator std::string() const { @@ -138,7 +138,7 @@ class date_t inline long operator-(const date_t& left, const date_t& right) { date_t temp(left); temp -= right; - return long(temp); + return (long)temp; } inline date_t operator+(const date_t& left, const long days) { |