diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-06-03 21:15:08 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-06-03 21:15:08 +0100 |
commit | 411e7e88030d86e64339a53462d2fb06180c3538 (patch) | |
tree | 9c2b86b2ea5012b288155cfabc5bd7885925e77b /sal/qa | |
parent | a779d979b9dd87589f00cfcb245f70c6b26d8c2c (diff) |
fix 32bit linux build
Change-Id: Ib42627c04b2c06e34f2dd108f8a04eaea916488a
Diffstat (limited to 'sal/qa')
-rw-r--r-- | sal/qa/osl/file/osl_File.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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<sal_Int32>(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<sal_uInt64>(sizeof( pBuffer_Char ) + 1) ); } CPPUNIT_TEST_SUITE( isEndOfFile ); CPPUNIT_TEST( isEndOfFile_001 ); |