]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/stream.cpp
Minor header cleaning.
[wxWidgets.git] / src / common / stream.cpp
index 83c302f5d1309dcdfad49b58097eb36a17919b99..8ae48e1605d3f02aaf1af5efd3f27d1ba890060a 100644 (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)