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:
		| @@ -76,7 +76,7 @@ void FileTestCase::DoRoundTripTest(const wxMBConv& conv) | |||||||
|         wxFile fin(tf.GetName(), wxFile::read); |         wxFile fin(tf.GetName(), wxFile::read); | ||||||
|         CPPUNIT_ASSERT( fin.IsOpened() ); |         CPPUNIT_ASSERT( fin.IsOpened() ); | ||||||
|  |  | ||||||
|         const wxFileOffset len = fin.Length(); |         const ssize_t len = fin.Length(); | ||||||
|         wxCharBuffer buf(len); |         wxCharBuffer buf(len); | ||||||
|         CPPUNIT_ASSERT_EQUAL( len, fin.Read(buf.data(), len) ); |         CPPUNIT_ASSERT_EQUAL( len, fin.Read(buf.data(), len) ); | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user