ICU-5445 Fix some compiler warnings.

X-SVN-Rev: 21694
This commit is contained in:
Vladimir Weinstein 2007-06-11 18:42:07 +00:00
parent 2f55b1b39f
commit a16ac0c913
2 changed files with 5 additions and 5 deletions

View File

@ -846,7 +846,7 @@ ucnv_UTF8FromUTF8(UConverterFromUnicodeArgs *pFromUArgs,
} else {
if(b>0xe0) {
if( /* handle U+1000..U+D7FF inline */
(t1=source[0]) >= 0x80 && ((b<0xed && t1 <= 0xbf) ||
(t1=source[0]) >= 0x80 && ((b<0xed && (t1 <= 0xbf)) ||
(b==0xed && (t1 <= 0x9f))) &&
(t2=source[1]) >= 0x80 && t2 <= 0xbf
) {

View File

@ -1,6 +1,6 @@
/*
******************************************************************************
* Copyright (C) 1997-2006, International Business Machines Corporation and *
* Copyright (C) 1997-2007, International Business Machines Corporation and *
* others. All Rights Reserved. *
******************************************************************************
*
@ -1385,9 +1385,9 @@ U_CAPI const UChar* U_EXPORT2 ures_getStringByIndex(const UResourceBundle *resB,
/*case URES_INT_VECTOR:*/
default:
/* Fall through. This should probably return a resource mismatch error */
break;
/*return;*/
/* must not occur */
*status = U_INTERNAL_PROGRAM_ERROR;
break;
}
} else {
*status = U_MISSING_RESOURCE_ERROR;