From 411e7e88030d86e64339a53462d2fb06180c3538 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 3 Jun 2016 21:15:08 +0100 Subject: fix 32bit linux build Change-Id: Ib42627c04b2c06e34f2dd108f8a04eaea916488a --- sal/qa/osl/file/osl_File.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sal/qa/osl') diff --git a/sal/qa/osl/file/osl_File.cxx b/sal/qa/osl/file/osl_File.cxx index 79d46cc7ea84..155dfec0d82f 100644 --- a/sal/qa/osl/file/osl_File.cxx +++ b/sal/qa/osl/file/osl_File.cxx @@ -1734,7 +1734,7 @@ namespace osl_FileStatus test_Attributes &= rFileStatus.getAttributes(); CPPUNIT_ASSERT_EQUAL_MESSAGE( "test for getAttributes function: Hidden files( Solaris version )", - osl_File_Attribute_Hidden, test_Attributes ); + static_cast(osl_File_Attribute_Hidden), test_Attributes ); } #else //Windows version void getAttributes_004() @@ -2608,14 +2608,14 @@ namespace osl_File nError1 = testFile.setPos( osl_Pos_Current, 1 ); CPPUNIT_ASSERT_EQUAL( nError1, ::osl::FileBase::E_None ); } - nError1 = testFile.getPos( nFilePointer ); + nError1 = testFile.getPos( nFilePointer ); CPPUNIT_ASSERT_EQUAL( nError1, ::osl::FileBase::E_None ); nError1 = testFile.close(); CPPUNIT_ASSERT_EQUAL( nError1, ::osl::FileBase::E_None ); CPPUNIT_ASSERT_EQUAL_MESSAGE( "test for isEndOfFile function: use isEndOfFile to move pointer step by step", - nFilePointer, sizeof( pBuffer_Char ) + 1 ); + nFilePointer, static_cast(sizeof( pBuffer_Char ) + 1) ); } CPPUNIT_TEST_SUITE( isEndOfFile ); CPPUNIT_TEST( isEndOfFile_001 ); -- cgit