[Libreoffice-commits] .: comphelper/qa

Caolán McNamara caolan at kemper.freedesktop.org
Thu Nov 10 03:17:33 PST 2011


 comphelper/qa/string/test_string.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 2401f2aa1c74bf7b35f3ee780af74ed7882bc449
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Nov 10 11:16:51 2011 +0000

    reported compile failure, possible sal_Int32 is long on 32bit vs int

diff --git a/comphelper/qa/string/test_string.cxx b/comphelper/qa/string/test_string.cxx
index 3e30ad2..a290cb7 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;


More information about the Libreoffice-commits mailing list