Fix sign-compare warning

This commit is contained in:
Maarten Bent
2020-12-22 15:44:24 +01:00
parent da455f3c0b
commit e889924bc1
6 changed files with 13 additions and 13 deletions

View File

@@ -464,14 +464,14 @@ bool wxChmInputStream::Eof() const
return (m_content==NULL ||
m_contentStream==NULL ||
m_contentStream->Eof() ||
m_pos>m_size);
(size_t)m_pos>m_size);
}
size_t wxChmInputStream::OnSysRead(void *buffer, size_t bufsize)
{
if ( m_pos >= m_size )
if ( (size_t)m_pos >= m_size )
{
m_lasterror = wxSTREAM_EOF;
return 0;