From 765ced3dfa026174f8461ac39ba092d71ab2c62c Mon Sep 17 00:00:00 2001 From: Michael Wetherell Date: Sun, 29 Oct 2006 22:38:26 +0000 Subject: [PATCH] Compile fix after GetC return type changed from char to int. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42681 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- tests/streams/fileback.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/streams/fileback.cpp b/tests/streams/fileback.cpp index 129e2029d0..484c95a8d5 100644 --- a/tests/streams/fileback.cpp +++ b/tests/streams/fileback.cpp @@ -19,15 +19,12 @@ #endif #include "wx/mstream.h" -#include "wx/fileback.h" +#include "wx/private/fileback.h" #include "bstream.h" -#if wxUSE_STREAMS - const size_t TESTSIZE = 256; const size_t BUFSIZE = 100; - /////////////////////////////////////////////////////////////////////////////// // Parent stream for testing @@ -189,7 +186,7 @@ void backStream::Seek(wxInputStream& in) for (wxFileOffset i = TESTSIZE - 1; i >= 0; i--) { CPPUNIT_ASSERT_EQUAL(i, in.SeekI(i)); CPPUNIT_ASSERT_EQUAL(i, in.TellI()); - CPPUNIT_ASSERT_EQUAL(char(i), in.GetC()); + CPPUNIT_ASSERT_EQUAL(int(i), in.GetC()); CPPUNIT_ASSERT_EQUAL(size_t(1), in.LastRead()); CPPUNIT_ASSERT(in.IsOk()); } @@ -198,5 +195,3 @@ void backStream::Seek(wxInputStream& in) // Register the stream sub suite, by using some stream helper macro. // Note: Don't forget to connect it to the base suite (See: bstream.cpp => StreamCase::suite()) STREAM_TEST_SUBSUITE_NAMED_REGISTRATION(backStream) - -#endif // wxUSE_STREAMS -- 2.45.2