From: Vadim Zeitlin Date: Sat, 3 Jan 2009 19:29:46 +0000 (+0000) Subject: trying to fix buildbot VC6 build error X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3e98ba4589467c1ce853d93f191e0034e64ef7da trying to fix buildbot VC6 build error git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57819 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/tests/streams/bstream.h b/tests/streams/bstream.h index d42c23a181..1f015314e3 100644 --- a/tests/streams/bstream.h +++ b/tests/streams/bstream.h @@ -203,8 +203,8 @@ protected: // Try to Seek in the stream... // Note: streams not supporting this should register this test // with CPPUNIT_TEST_FAIL instead of CPPUNIT_TEST. - CPPUNIT_ASSERT_EQUAL(2, stream_in.SeekI(2, wxFromStart)); - CPPUNIT_ASSERT_EQUAL(4, stream_in.SeekI(2, wxFromCurrent)); + CPPUNIT_ASSERT_EQUAL(wxFileOffset(2), stream_in.SeekI(2, wxFromStart)); + CPPUNIT_ASSERT_EQUAL(wxFileOffset(4), stream_in.SeekI(2, wxFromCurrent)); // Not sure the following line is correct, so test it differently. //CPPUNIT_ASSERT_EQUAL(stream_in.GetSize()-2, stream_in.SeekI(-2, wxFromEnd)); CPPUNIT_ASSERT(stream_in.SeekI(-2, wxFromEnd) != wxInvalidOffset);