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
size_t wxHTTPStream::OnSysRead(void *buffer, size_t bufsize)
{
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;
{
m_lasterror = wxSTREAM_EOF;
return 0;