ruby-32: re-add architecure independent manifest support, remove unnecassary GNU_CPU...
[oi-userland.git] / components / library / icu-74 / patches / 152-source-test-intltest-strtest.cpp.patch
blob7c445bd8b37e6635113986eb14e3d23f6bf9fc4b
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 @@ -538,9 +538,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 @@ -550,9 +550,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());