X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6984e4147875396b257450ff793c20c2eb0e16a3..761952d9cbc4fef5810fccd8abe2b71b9e29a2a1:/src/common/longlong.cpp diff --git a/src/common/longlong.cpp b/src/common/longlong.cpp index 4646ce0d7b..aa5207c3f8 100644 --- a/src/common/longlong.cpp +++ b/src/common/longlong.cpp @@ -134,6 +134,19 @@ wxLongLongWx& wxLongLongWx::Assign(double d) return *this; } +double wxLongLongWx::ToDouble() const +{ + double d = m_hi; + d *= 1.0 + (double)ULONG_MAX; + d += m_lo; + +#ifdef wxLONGLONG_TEST_MODE + wxASSERT( d == m_ll ); +#endif // wxLONGLONG_TEST_MODE + + return d; +} + wxLongLongWx wxLongLongWx::operator<<(int shift) const { wxLongLongWx ll(*this);