From a922d576ec0a24652b440b9424ab74a5bc4b21aa Mon Sep 17 00:00:00 2001 From: "Kevin B. McCarty" Date: Sat, 9 May 2015 19:28:04 +0200 Subject: [PATCH] Use wxINT64_MIN for the value of invalid wxDateTime Use 0xffffffffffffffff instead of the strange 0xffffffff00000000 that we used before, for some reason. --- include/wx/datetime.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/wx/datetime.h b/include/wx/datetime.h index c3cedad7a4..89215177c9 100644 --- a/include/wx/datetime.h +++ b/include/wx/datetime.h @@ -450,7 +450,7 @@ public: // ------------------------------------------------------------------------ // default ctor does not initialize the object, use Set()! - wxDateTime() { m_time = wxLongLong(wxINT32_MIN, 0); } + wxDateTime() { m_time = wxINT64_MIN; } // from time_t: seconds since the Epoch 00:00:00 UTC, Jan 1, 1970) inline wxDateTime(time_t timet); @@ -704,7 +704,7 @@ public: // ------------------------------------------------------------------------ // is the date valid? - inline bool IsValid() const { return m_time != wxInvalidDateTime.m_time; } + inline bool IsValid() const { return m_time != wxLongLong(wxINT64_MIN); } // get the broken down date/time representation in the given timezone //