]> granicus.if.org Git - icu/commitdiff
ICU-13581 Fix AIX porting problem w range for loop.
authorAndy Heninger <andy.heninger@gmail.com>
Thu, 1 Mar 2018 23:11:18 +0000 (23:11 +0000)
committerAndy Heninger <andy.heninger@gmail.com>
Thu, 1 Mar 2018 23:11:18 +0000 (23:11 +0000)
X-SVN-Rev: 41043

icu4c/source/test/intltest/ucdtest.cpp

index e5c5989b9fc67f74fa07d9c264a21c87b7d74a51..8a52c94820f76e8e232f2d084435637d54932080 100644 (file)
@@ -558,7 +558,8 @@ void UnicodeTest::TestInvalidCodePointFolding(void) {
             0x110000, // out of range
             -1 // negative
     };
-    for (auto cp : invalidCodePoints) {
+    for (int32_t i=0; i<UPRV_LENGTHOF(invalidCodePoints); ++i) {
+        UChar32 cp = invalidCodePoints[i];
         assertEquals("Invalid code points should be echoed back",
                 cp, u_foldCase(cp, U_FOLD_CASE_DEFAULT));
         assertEquals("Invalid code points should be echoed back",