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:
@@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user