]> git.saurik.com Git - wxWidgets.git/commitdiff
explicitly cast wxUniCharRef to char inside CPPUNIT_ASSERT_EQUAL
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 2 Nov 2008 01:59:34 +0000 (01:59 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 2 Nov 2008 01:59:34 +0000 (01:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/strings/strings.cpp

index 3542704e49cea77d7aca63941bbfc617fd94bae2..9fb5c5490be0af2b5066456f91ac12601ef8d104 100644 (file)
@@ -834,13 +834,13 @@ void StringTestCase::ExplicitConversion()
 void StringTestCase::IndexedAccess()
 {
     wxString s("bar");
-    CPPUNIT_ASSERT_EQUAL( 'r', s[2] );
+    CPPUNIT_ASSERT_EQUAL( 'r', (char)s[2] );
 
     // this tests for a possible bug in UTF-8 based wxString implementation:
     // the 3rd character of the underlying byte string is going to change, but
     // the 3rd character of wxString should remain the same
     s[0] = L'\u00e9';
-    CPPUNIT_ASSERT_EQUAL( 'r', s[2] );
+    CPPUNIT_ASSERT_EQUAL( 'r', (char)s[2] );
 }
 
 void StringTestCase::BeforeAndAfter()