Avoid comparing unsigned values with < 0
This commit is contained in:
@@ -887,7 +887,7 @@ wxGIFErrorCode wxGIFDecoder::LoadGIF(wxInputStream& stream)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_nFrames <= 0)
|
if (m_nFrames == 0)
|
||||||
{
|
{
|
||||||
Destroy();
|
Destroy();
|
||||||
return wxGIF_INVFORMAT;
|
return wxGIF_INVFORMAT;
|
||||||
|
@@ -108,7 +108,7 @@ wxChar wxTextInputStream::GetChar()
|
|||||||
// actually read the next character
|
// actually read the next character
|
||||||
m_lastBytes[inlen] = m_input.GetC();
|
m_lastBytes[inlen] = m_input.GetC();
|
||||||
|
|
||||||
if(m_input.LastRead() <= 0)
|
if (m_input.LastRead() == 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
m_validEnd++;
|
m_validEnd++;
|
||||||
@@ -358,7 +358,7 @@ wxTextInputStream& wxTextInputStream::operator>>(wxString& word)
|
|||||||
wxTextInputStream& wxTextInputStream::operator>>(char& c)
|
wxTextInputStream& wxTextInputStream::operator>>(char& c)
|
||||||
{
|
{
|
||||||
c = m_input.GetC();
|
c = m_input.GetC();
|
||||||
if(m_input.LastRead() <= 0) c = 0;
|
if (m_input.LastRead() == 0) c = 0;
|
||||||
|
|
||||||
if (EatEOL(c))
|
if (EatEOL(c))
|
||||||
c = '\n';
|
c = '\n';
|
||||||
|
Reference in New Issue
Block a user