]> git.saurik.com Git - wxWidgets.git/commitdiff
Remove unnecessary comparison of unsigned variable with 0.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 28 Feb 2010 11:08:34 +0000 (11:08 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 28 Feb 2010 11:08:34 +0000 (11:08 +0000)
m_httpsize is of type size_t and so is always >= 0, no need to check for it.
And removing the check avoids a warning from at least IRIX mipsPro (and
probably others).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63573 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/http.cpp

index 873ac6db433e588ebccf2b181ca79d3940b144bb..66257f4dd5777e2326568e0eaf4637fe08bae427 100644 (file)
@@ -430,7 +430,7 @@ protected:
 
 size_t wxHTTPStream::OnSysRead(void *buffer, size_t bufsize)
 {
-    if (m_httpsize >= 0 && m_read_bytes >= m_httpsize)
+    if (m_read_bytes >= m_httpsize)
     {
         m_lasterror = wxSTREAM_EOF;
         return 0;