Change GetC to return an int so that it can return wxEOF on error.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Michael Wetherell
2006-10-29 17:00:07 +00:00
parent 5c746f384e
commit 6ea48c514e
2 changed files with 8 additions and 6 deletions

View File

@@ -809,11 +809,11 @@ bool wxInputStream::Ungetch(char c)
return Ungetch(&c, sizeof(c)) != 0;
}
char wxInputStream::GetC()
int wxInputStream::GetC()
{
char c;
unsigned char c;
Read(&c, sizeof(c));
return c;
return LastRead() ? c : wxEOF;
}
wxInputStream& wxInputStream::Read(void *buf, size_t size)