X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/16ee521a22ea11720638c55059957f7ad63ee151..794bcc2dea743ac907b839f54e451847c9ea4b72:/include/wx/datetime.inl?ds=sidebyside diff --git a/include/wx/datetime.inl b/include/wx/datetime.inl index 0420e98f74..8d3112b6a4 100644 --- a/include/wx/datetime.inl +++ b/include/wx/datetime.inl @@ -75,7 +75,8 @@ wxDateTime& wxDateTime::Set(time_t timet) wxDateTime& wxDateTime::SetToCurrent() { - return *this = Now(); + *this = Now(); + return *this; } #if (!(defined(__VISAGECPP__) && __IBMCPP__ >= 400)) @@ -362,10 +363,10 @@ wxDateTime wxDateTime::ToTimezone(const wxDateTime::TimeZone& tz, // wxTimeSpan construction // ---------------------------------------------------------------------------- -wxTimeSpan::wxTimeSpan(int hours, int minutes, int seconds, int milliseconds) +wxTimeSpan::wxTimeSpan(long hours, long minutes, long seconds, long milliseconds) { // assign first to avoid precision loss - m_diff = (long)hours; + m_diff = hours; m_diff *= 60l; m_diff += minutes; m_diff *= 60l;