openjdk-23: use OpenJDK 23 as the boot JDK
[oi-userland.git] / components / library / icu-75 / patches / 152-source-test-intltest-strtest.cpp.patch
blob40358405da0e2458d3a04a72584a61dc87d92289
1 fix build failure. Reported in
2 https://unicode-org.atlassian.net/projects/ICU/issues/ICU-20236
4 --- icu/source/test/intltest/strtest.cpp.orig
5 +++ icu/source/test/intltest/strtest.cpp
6 @@ -531,9 +531,9 @@
8 StringPiece abc3(u8"abcdef", 3);
9 assertEquals("abc3.length", 3, abc3.length());
10 - assertEquals("abc3[0]", 0x61, abc3.data()[0]);
11 - assertEquals("abc3[1]", 0x62, abc3.data()[1]);
12 - assertEquals("abc3[2]", 0x63, abc3.data()[2]);
13 + assertEquals("abc3[0]", 0x61, (int)abc3.data()[0]);
14 + assertEquals("abc3[1]", 0x62, (int)abc3.data()[1]);
15 + assertEquals("abc3[2]", 0x63, (int)abc3.data()[2]);
17 StringPiece uvw("q");
18 uvw.set(u8"uvw");
19 @@ -543,9 +543,9 @@
20 StringPiece xyz("r");
21 xyz.set(u8"xyzXYZ", 3);
22 assertEquals("xyz.length", 3, xyz.length());
23 - assertEquals("xyz[0]", 0x78, xyz.data()[0]);
24 - assertEquals("xyz[1]", 0x79, xyz.data()[1]);
25 - assertEquals("xyz[2]", 0x7a, xyz.data()[2]);
26 + assertEquals("xyz[0]", 0x78, (int)xyz.data()[0]);
27 + assertEquals("xyz[1]", 0x79, (int)xyz.data()[1]);
28 + assertEquals("xyz[2]", 0x7a, (int)xyz.data()[2]);
30 StringPiece null(nullptr);
31 assertTrue("null is empty", null.empty());