From: Václav Slavík Date: Thu, 29 Mar 2007 19:10:43 +0000 (+0000) Subject: fixed warning about comparing int to size_t X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/759d51f229c391e133bd8ccd9ec21eb7a0843aaf fixed warning about comparing int to size_t git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/string.h b/include/wx/string.h index 735e75ef77..e0f58918e8 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -235,7 +235,7 @@ public: } wxCStrData operator-(size_t n) const { - wxASSERT_MSG( n <= (int)m_offset, + wxASSERT_MSG( n <= m_offset, _T("attempt to construct address before the beginning of the string") ); return wxCStrData(m_str, m_offset - n, m_owned); }