]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/longlong.cpp
centralized Esc key handling for closing the dialogs in wxDialogBase:
[wxWidgets.git] / src / common / longlong.cpp
index 360d087b3e351610f4aab3fa66157b225dae0b9f..772ecc0b9a600e57d6919b1eaf3bc7aae6c68ff3 100644 (file)
@@ -194,6 +194,19 @@ double wxLongLongWx::ToDouble() const
     return d;
 }
 
+double wxULongLongWx::ToDouble() const
+{
+    unsigned 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);