ICU-3100 fix failure on cygwin ... just add a cast to UnicodeString constructor

X-SVN-Rev: 15695
This commit is contained in:
Ram Viswanadha 2004-06-03 22:50:09 +00:00
parent cdf11a7176
commit 6215c57675

View File

@ -2123,8 +2123,8 @@ void CollationAPITest::TestNULLCharTailoring()
UErrorCode status = U_ZERO_ERROR;
UChar buf[256] = {0};
int32_t len = u_unescape("&a < '\\u0000'", buf, 256);
UnicodeString first(0x0061);
UnicodeString second(0);
UnicodeString first((UChar)0x0061);
UnicodeString second(UChar)0);
RuleBasedCollator *coll = new RuleBasedCollator(UnicodeString(buf, len), status);
if(U_FAILURE(status)) {
errln("Failed to open collator");