+ // convert to long with range checking in the debug mode (only!)
+ long ToLong() const
+ {
+ wxASSERT_MSG( (m_ll >= LONG_MIN) && (m_ll <= LONG_MAX),
+ _T("wxLongLong to long conversion loss of precision") );
+
+ return (long)m_ll;
+ }
+
+ // don't provide implicit conversion to wxLongLong_t or we will have an
+ // ambiguity for all arithmetic operations