X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/62675f1e331549a873edd094c686fae771e862c5..4a4bf7eefbc04cb91652031d9a729720d52dde61:/include/wx/longlong.h diff --git a/include/wx/longlong.h b/include/wx/longlong.h index 59dcd57c74..b6cc42b479 100644 --- a/include/wx/longlong.h +++ b/include/wx/longlong.h @@ -410,6 +410,13 @@ public: return wx_truncate_cast(unsigned long, m_ll); } + // convert to double +#ifdef _MSC_VER + double ToDouble() const { return wx_truncate_cast(double, (__int64) m_ll); } +#else + double ToDouble() const { return wx_truncate_cast(double, m_ll); } +#endif + // operations // addition wxULongLongNative operator+(const wxULongLongNative& ll) const @@ -906,6 +913,9 @@ public: return (unsigned long)m_lo; } + // convert to double + double ToDouble() const; + // operations // addition wxULongLongWx operator+(const wxULongLongWx& ll) const;