]> git.saurik.com Git - wxWidgets.git/commitdiff
Take out wxASSERTs since they give a warning with gcc.
authorMichael Wetherell <mike.wetherell@ntlworld.com>
Sun, 27 Nov 2005 18:12:37 +0000 (18:12 +0000)
committerMichael Wetherell <mike.wetherell@ntlworld.com>
Sun, 27 Nov 2005 18:12:37 +0000 (18:12 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36271 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/regex.cpp

index d608a5773d45eec10457409dcc99433421e2026c..2e0068f0a38e64f56d9045762a044ee6fa1a037b 100644 (file)
@@ -90,16 +90,14 @@ public:
     // we just use casts here because the fields of regmatch_t struct may be 64
     // bit but we're limited to size_t in our public API and are not going to
     // change it because operating on strings longer than 4GB using it is
-    // absolutely impractical anyhow, but still check at least in debug
+    // absolutely impractical anyhow
     size_t Start(size_t n) const
     {
-        wxASSERT_MSG( m_matches[n].rm_so < UINT_MAX, _T("regex offset overflow") );
         return wx_truncate_cast(size_t, m_matches[n].rm_so);
     }
 
     size_t End(size_t n) const
     {
-        wxASSERT_MSG( m_matches[n].rm_eo < UINT_MAX, _T("regex offset overflow") );
         return wx_truncate_cast(size_t, m_matches[n].rm_eo);
     }