diff --git a/include/wx/longlong.h b/include/wx/longlong.h index ca687f6861..cd6b752d1e 100644 --- a/include/wx/longlong.h +++ b/include/wx/longlong.h @@ -404,7 +404,7 @@ public: // convert to ulong with range checking in debug mode (only!) unsigned long ToULong() const { - wxASSERT_MSG( m_ll <= LONG_MAX, + wxASSERT_MSG( m_ll <= ULONG_MAX, wxT("wxULongLong to long conversion loss of precision") ); return wx_truncate_cast(unsigned long, m_ll);