From ccc3a25d878ae0797c2f689f5ef6a8b727786f83 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 28 Feb 2010 11:08:34 +0000 Subject: [PATCH] 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 --- src/common/http.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/http.cpp b/src/common/http.cpp index 873ac6db43..66257f4dd5 100644 --- a/src/common/http.cpp +++ b/src/common/http.cpp @@ -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; -- 2.45.2