X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/f3c0d7a59d99c2a94c6b8822291f0e42be3773c9..1a147d096ae81f4c8262f7bfc56bd19fc2dee932:/icuSources/test/cintltst/nucnvtst.c diff --git a/icuSources/test/cintltst/nucnvtst.c b/icuSources/test/cintltst/nucnvtst.c index 3366b669..ba8d1313 100644 --- a/icuSources/test/cintltst/nucnvtst.c +++ b/icuSources/test/cintltst/nucnvtst.c @@ -1113,26 +1113,36 @@ static void TestNewConvertWithBufferSizes(int32_t outsize, int32_t insize ) 0xf4, 0x8f, 0xbf, 0xbf, /* 10FFFF */ 0xdf, 0xbf, /* 7ff */ 0xbf, /* truncated tail */ - 0xf4, 0x90, 0x80, 0x80, /* 11FFFF */ + 0xf4, 0x90, 0x80, 0x80, /* 110000 */ 0x02 }; static const uint16_t utf8Expected[]={ 0x0061, - 0xfffd, + 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0x0000, 0x0062, - 0xfffd, - 0xfffd, + 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, + 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xdbff, 0xdfff, 0x07ff, 0xfffd, - 0xfffd, + 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0x0002 }; static const int32_t utf8Offsets[]={ - 0, 1, 5, 6, 7, 12, 17, 17, 21, 23, 24, 28 + 0, + 1, 2, 3, 4, + 5, + 6, + 7, 8, 9, 10, 11, + 12, 13, 14, 15, 16, + 17, 17, + 21, + 23, + 24, 25, 26, 27, + 28 }; testConvertToU(utf8, sizeof(utf8), utf8Expected, UPRV_LENGTHOF(utf8Expected), "utf-8", utf8Offsets ,FALSE); @@ -5497,7 +5507,7 @@ static void TestJB5275_1(){ } targetLimit = target; target = dest; - printUSeq(target, targetLimit-target); + printUSeq(target, (int)(targetLimit-target)); while(target