From 8a5f6873a0dc19898dbab25371f942f72af49839 Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Thu, 24 Aug 2006 19:03:06 +0000 Subject: [PATCH] ICU-4707 Fix some compiler warnings. X-SVN-Rev: 20154 --- icu4c/source/test/cintltst/cbiditst.c | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/icu4c/source/test/cintltst/cbiditst.c b/icu4c/source/test/cintltst/cbiditst.c index 2e8cd5ca7af..bf7dab2d74e 100644 --- a/icu4c/source/test/cintltst/cbiditst.c +++ b/icu4c/source/test/cintltst/cbiditst.c @@ -329,13 +329,8 @@ static int pseudoToU16( const int length, const char * input, UChar * output ) if (!tablesInitialized) { buildPseudoTables(); } - if (pseudoToUChar) { /* tables are built */ - for (i = 0; i < length; i++) - output[i] = pseudoToUChar[(uint8_t)input[i]]; - } else { /* short on memory */ - for (i = 0; i < length; i++) - output[i] = '?'; - } + for (i = 0; i < length; i++) + output[i] = pseudoToUChar[(uint8_t)input[i]]; return length; } @@ -351,16 +346,11 @@ static int u16ToPseudo( const int length, const UChar * input, char * output ) if (!tablesInitialized) { buildPseudoTables(); } - if (pseudoToUChar) { - for (i = 0; i < length; i++) - { - uchar = input[i]; - output[i] = uchar < 0x0100 ? UCharToPseudo[uchar] : - UCharToPseud2[uchar & 0x00ff]; - } - } else { /* short on memory */ - for (i = 0; i < length; i++) - output[i] = '?'; + for (i = 0; i < length; i++) + { + uchar = input[i]; + output[i] = uchar < 0x0100 ? UCharToPseudo[uchar] : + UCharToPseud2[uchar & 0x00ff]; } output[length] = '\0'; return length;