Avoid comparing unsigned values with < 0

This commit is contained in:
Paul Cornett
2019-04-05 10:12:27 -07:00
parent 1bba25c7ee
commit 691521e411
2 changed files with 3 additions and 3 deletions

View File

@@ -887,7 +887,7 @@ wxGIFErrorCode wxGIFDecoder::LoadGIF(wxInputStream& stream)
}
}
if (m_nFrames <= 0)
if (m_nFrames == 0)
{
Destroy();
return wxGIF_INVFORMAT;

View File

@@ -108,7 +108,7 @@ wxChar wxTextInputStream::GetChar()
// actually read the next character
m_lastBytes[inlen] = m_input.GetC();
if(m_input.LastRead() <= 0)
if (m_input.LastRead() == 0)
return 0;
m_validEnd++;
@@ -358,7 +358,7 @@ wxTextInputStream& wxTextInputStream::operator>>(wxString& word)
wxTextInputStream& wxTextInputStream::operator>>(char& c)
{
c = m_input.GetC();
if(m_input.LastRead() <= 0) c = 0;
if (m_input.LastRead() == 0) c = 0;
if (EatEOL(c))
c = '\n';