diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-11-10 11:16:51 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-11-10 11:17:10 +0000 |
commit | 2401f2aa1c74bf7b35f3ee780af74ed7882bc449 (patch) | |
tree | bbb18f710dc89c79f40747c6c094951035f52b2d /comphelper | |
parent | 7b8ec1dc0ca1a04759497e26dfd1a1347ac9147a (diff) |
reported compile failure, possible sal_Int32 is long on 32bit vs int
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/qa/string/test_string.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/comphelper/qa/string/test_string.cxx b/comphelper/qa/string/test_string.cxx index 3e30ad22f440..a290cb7c5e93 100644 --- a/comphelper/qa/string/test_string.cxx +++ b/comphelper/qa/string/test_string.cxx @@ -154,16 +154,16 @@ void TestString::testIndexOfL() rtl::OString s1(RTL_CONSTASCII_STRINGPARAM("one two three")); CPPUNIT_ASSERT_EQUAL(comphelper::string::indexOfL(s1, - RTL_CONSTASCII_STRINGPARAM("one")), 0); + RTL_CONSTASCII_STRINGPARAM("one")), static_cast<sal_Int32>(0)); CPPUNIT_ASSERT_EQUAL(comphelper::string::indexOfL(s1, - RTL_CONSTASCII_STRINGPARAM("two")), 4); + RTL_CONSTASCII_STRINGPARAM("two")), static_cast<sal_Int32>(4)); CPPUNIT_ASSERT_EQUAL(comphelper::string::indexOfL(s1, - RTL_CONSTASCII_STRINGPARAM("four")), -1); + RTL_CONSTASCII_STRINGPARAM("four")), static_cast<sal_Int32>(-1)); CPPUNIT_ASSERT_EQUAL(comphelper::string::indexOfL(s1, - RTL_CONSTASCII_STRINGPARAM("two"), 5), -1); + RTL_CONSTASCII_STRINGPARAM("two"), 5), static_cast<sal_Int32>(-1)); } using namespace ::com::sun::star; |