From: Vadim Zeitlin Date: Sun, 13 Sep 2009 12:26:03 +0000 (+0000) Subject: Fix test compilation under OS X. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/bf24fcddc33cbf7d52a3047cdf1eaa6451483c28 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 --- diff --git a/tests/file/filetest.cpp b/tests/file/filetest.cpp index dc3c286691..33300577cb 100644 --- a/tests/file/filetest.cpp +++ b/tests/file/filetest.cpp @@ -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) );