Fix test compilation under OS X.
wxFileOffset and ssize_t are not the same type under this platform so using CPPUNIT_ASSERT_EQUAL() with the arguments of these types fails. Use ssize_t instead of wxFileOffset to fix this. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61903 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
873c1a2300
commit
bf24fcddc3
@ -76,7 +76,7 @@ void FileTestCase::DoRoundTripTest(const wxMBConv& conv)
|
||||
wxFile fin(tf.GetName(), wxFile::read);
|
||||
CPPUNIT_ASSERT( fin.IsOpened() );
|
||||
|
||||
const wxFileOffset len = fin.Length();
|
||||
const ssize_t len = fin.Length();
|
||||
wxCharBuffer buf(len);
|
||||
CPPUNIT_ASSERT_EQUAL( len, fin.Read(buf.data(), len) );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user