Cast time_t object to long, for the sake of FreeBSD.
This commit is contained in:
parent
ecdd4198ba
commit
050e87f4e3
1 changed files with 1 additions and 1 deletions
|
|
@ -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 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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue