From 050e87f4e304aabf341e432c8303b8d357f099f2 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 13 Apr 2008 05:07:28 -0400 Subject: Cast time_t object to long, for the sake of FreeBSD. --- datetime.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3