From ed3c1af165e403d94ba89312d6b517e0c100a9a0 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 13 Jul 2007 13:48:10 +0000 Subject: [PATCH] use wxLongLong::ToLong() and not GetLo() to extract time_t value in GetTicks(): they are very different on 64 bit platforms [backport from trunk] git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@47429 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/datetime.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/datetime.h b/include/wx/datetime.h index 2b88024a5a..7eccaa1652 100644 --- a/include/wx/datetime.h +++ b/include/wx/datetime.h @@ -1678,7 +1678,7 @@ inline time_t wxDateTime::GetTicks() const return (time_t)-1; } - return (time_t)((m_time / (long)TIME_T_FACTOR).GetLo())+WX_TIME_BASE_OFFSET ; + return (time_t)((m_time / (long)TIME_T_FACTOR).ToLong()) + WX_TIME_BASE_OFFSET; } inline bool wxDateTime::SetToLastWeekDay(WeekDay weekday,