summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-04-13 05:07:28 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 05:07:28 -0400
commit050e87f4e304aabf341e432c8303b8d357f099f2 (patch)
tree2f354b19262e44005af1a7ca3f3bd758a239c545
parentecdd4198ba9fd1b06e14f08ee898ab0a09291bd2 (diff)
downloadfork-ledger-050e87f4e304aabf341e432c8303b8d357f099f2.tar.gz
fork-ledger-050e87f4e304aabf341e432c8303b8d357f099f2.tar.bz2
fork-ledger-050e87f4e304aabf341e432c8303b8d357f099f2.zip
Cast time_t object to long, for the sake of FreeBSD.
-rw-r--r--datetime.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/datetime.h b/datetime.h
index 9463296f..8ca5f424 100644
--- a/datetime.h
+++ b/datetime.h
@@ -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 temp;
+ return long(temp);
}
inline date_t operator+(const date_t& left, const long days) {