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
This commit is contained in:
Václav Slavík
2007-03-29 19:10:43 +00:00
parent f4c90fdfaf
commit 759d51f229

View File

@@ -235,7 +235,7 @@ public:
} }
wxCStrData operator-(size_t n) const 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") ); _T("attempt to construct address before the beginning of the string") );
return wxCStrData(m_str, m_offset - n, m_owned); return wxCStrData(m_str, m_offset - n, m_owned);
} }