datetime.h (class date_t, operator-): [#34] Changed two methods to allow
compiling under FreeBSD 8. Functionality was not changed.
This commit is contained in:
parent
7603e3f8f2
commit
ef2dac2b50
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue