Remove unnecessary comparison of unsigned variable with 0.

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
This commit is contained in:
Vadim Zeitlin
2010-02-28 11:08:34 +00:00
parent e4d0689515
commit ccc3a25d87

View 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;