From ef2dac2b50c2dbd94d89555dc97d98d1f1c375d1 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 7 May 2008 03:38:19 -0400 Subject: datetime.h (class date_t, operator-): [#34] Changed two methods to allow compiling under FreeBSD 8. Functionality was not changed. --- datetime.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/datetime.h b/datetime.h index 8ca5f424..9f85d3f2 100644 --- a/datetime.h +++ b/datetime.h @@ -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) { -- cgit v1.2.3