diff options
author | John Wiegley <johnw@newartisans.com> | 2008-05-07 03:38:19 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-05-07 03:40:52 -0400 |
commit | ef2dac2b50c2dbd94d89555dc97d98d1f1c375d1 (patch) | |
tree | 9327d97729605a31c912918f12bdf0522693c5f5 | |
parent | 7603e3f8f2d43a0dbaa2aaa8fc975261a6d21a6c (diff) | |
download | fork-ledger-ef2dac2b50c2dbd94d89555dc97d98d1f1c375d1.tar.gz fork-ledger-ef2dac2b50c2dbd94d89555dc97d98d1f1c375d1.tar.bz2 fork-ledger-ef2dac2b50c2dbd94d89555dc97d98d1f1c375d1.zip |
datetime.h (class date_t, operator-): [#34] Changed two methods to allow
compiling under FreeBSD 8. Functionality was not changed.
-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) { |