From ad2c21909eeedfd922e40a343ee4808787ce92c0 Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Mon, 21 Aug 2000 22:28:56 +0000 Subject: [PATCH] ICU-535 fixed some compiler warnings X-SVN-Rev: 2319 --- icu4c/source/test/cintltst/creststn.c | 3 ++- icu4c/source/test/cintltst/utf16tst.c | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/icu4c/source/test/cintltst/creststn.c b/icu4c/source/test/cintltst/creststn.c index a30baf32e5..983318d8ff 100644 --- a/icu4c/source/test/cintltst/creststn.c +++ b/icu4c/source/test/cintltst/creststn.c @@ -49,7 +49,8 @@ randul() } /* Assume rand has at least 12 bits of precision */ - for (i=0; i> 4; + for (i=0; i> 4); return l; } diff --git a/icu4c/source/test/cintltst/utf16tst.c b/icu4c/source/test/cintltst/utf16tst.c index f8bfd025d7..b4f4b287c3 100644 --- a/icu4c/source/test/cintltst/utf16tst.c +++ b/icu4c/source/test/cintltst/utf16tst.c @@ -151,10 +151,18 @@ void TestGetChar() if(c != result[i+1]){ log_err("ERROR: UTF16_GET_CHAR_SAFE failed for offset=%ld. Expected:%lx Got:%lx\n", offset, result[i+1], c); } + UTF16_GET_CHAR_SAFE_LENIENT(input, 0, offset, sizeof(input)/U_SIZEOF_UCHAR, c); + if(c != result[i+1]){ + log_err("ERROR: UTF16_GET_CHAR_SAFE failed for offset=%ld. Expected:%lx Got:%lx\n", offset, result[i+1], c); + } UTF16_GET_CHAR_SAFE(input, 0, offset, sizeof(input)/U_SIZEOF_UCHAR, c, TRUE); if(c != result[i+2]){ log_err("ERROR: UTF16_GET_CHAR_SAFE(strict) failed for offset=%ld. Expected:%lx Got:%lx\n", offset, result[i+2], c); } + UTF16_GET_CHAR_SAFE_STRICT(input, 0, offset, sizeof(input)/U_SIZEOF_UCHAR, c); + if(c != result[i+2]){ + log_err("ERROR: UTF16_GET_CHAR_SAFE(strict) failed for offset=%ld. Expected:%lx Got:%lx\n", offset, result[i+2], c); + } i=(uint16_t)(i+3); }