From a89853073695b862f161c51704e9cab9c5bdeac6 Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Mon, 4 Dec 2000 19:10:07 +0000 Subject: [PATCH] ICU-624 Fixed some compiler warnings X-SVN-Rev: 3112 --- icu4c/source/test/intltest/ucdtest.cpp | 35 ++++++++++++++------------ 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/icu4c/source/test/intltest/ucdtest.cpp b/icu4c/source/test/intltest/ucdtest.cpp index 2c0411c07b9..afe1550aa51 100644 --- a/icu4c/source/test/intltest/ucdtest.cpp +++ b/icu4c/source/test/intltest/ucdtest.cpp @@ -347,8 +347,10 @@ void UnicodeTest::TestUnicodeData() int8_t type; for(;;) { bufferPtr = fgets(buffer, 999, input); - if (bufferPtr == NULL) break; - if (bufferPtr[0] == '#' || bufferPtr[0] == '\n' || bufferPtr[0] == 0) continue; + if (bufferPtr == NULL) + break; + if (bufferPtr[0] == '#' || bufferPtr[0] == '\n' || bufferPtr[0] == 0) + continue; sscanf(bufferPtr, "%X", &unicode); assert(0 <= unicode && unicode < 65536); if (unicode == LAST_CHAR_CODE_IN_FILE) @@ -401,7 +403,8 @@ void UnicodeTest::TestUnicodeData() errln("Unicode character directionality failed at\n " + unicode); } - if (input) fclose(input); + if (input) + fclose(input); // test Unicode::getCharName() // a more thorough test of u_charName() is in cintltst/cucdtst.c @@ -457,9 +460,9 @@ int32_t UnicodeTest::MakeDir(char* str) void UnicodeTest::TestCodeUnit(){ const UChar codeunit[]={0x0000,0xe065,0x20ac,0xd7ff,0xd800,0xd841,0xd905,0xdbff,0xdc00,0xdc02,0xddee,0xdfff,0}; - int16_t i; + int32_t i; - for(i=0; i=18 && i=18 && i<(int32_t)(sizeof(codePoint)/sizeof(codePoint[0]))){ if(Unicode::isSurrogate(c)){ errln((UnicodeString)"ERROR: isSurrogate() failed for" + prettify(msg)); } @@ -594,7 +597,7 @@ void UnicodeTest::TestCharLength() int32_t i; UBool multiple; - for(i=0; i