Added a fix to allowing building on the latest version of BSD.

This commit is contained in:
John Wiegley 2008-03-27 23:49:25 +00:00
parent f879b2f149
commit 96c0d67b96

View file

@ -96,7 +96,7 @@ class date_t
operator bool() const { operator bool() const {
return when != 0; return when != 0;
} }
operator std::time_t() const { operator std::time_t() {
return when; return when;
} }
operator std::string() const { operator std::string() const {
@ -138,7 +138,7 @@ class date_t
inline long operator-(const date_t& left, const date_t& right) { inline long operator-(const date_t& left, const date_t& right) {
date_t temp(left); date_t temp(left);
temp -= right; temp -= right;
return long(temp); return (long)temp;
} }
inline date_t operator+(const date_t& left, const long days) { inline date_t operator+(const date_t& left, const long days) {