]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed warning about comparing int to size_t
authorVáclav Slavík <vslavik@fastmail.fm>
Thu, 29 Mar 2007 19:10:43 +0000 (19:10 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Thu, 29 Mar 2007 19:10:43 +0000 (19:10 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/string.h

index 735e75ef7709c6de6338e8110d286b0cfb499c84..e0f58918e884a80309cdd84ee0692b3688a66243 100644 (file)
@@ -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);
     }