* Typetest sample fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2918
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
textCtrl.WriteText( tmp );
textCtrl.WriteText( "\nReading from wxFileInputStream:\n" );
+
+ file_output.OutputStreamBuffer()->FlushBuffer();
wxFileInputStream file_input( "test_wx.dat" );
while (!end_line) {
c = GetC();
+ if (LastError() != wxStream_NOERROR)
+ break;
+
switch (c) {
case '\n':
end_line = TRUE;
#endif
// wxUSE_STREAMS
-
\ No newline at end of file
+
}
while (isdigit(c)) {
- i = i*10 + c;
+ i = i*10 + (c - (int)'0');
c = GetC();
}
}
while (isdigit(c)) {
- i = i*10 + c;
+ i = i*10 + c - '0';
c = GetC();
}