summaryrefslogtreecommitdiff
path: root/datetime.h
diff options
context:
space:
mode:
Diffstat (limited to 'datetime.h')
-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) {