ICU-535 fixed some compiler warnings
X-SVN-Rev: 2377
This commit is contained in:
parent
ca7cfcfe16
commit
06b21bb2d8
@ -151,7 +151,7 @@ u_fopen(const char *filename,
|
||||
const char *codepage)
|
||||
{
|
||||
UErrorCode status = U_ZERO_ERROR;
|
||||
UBool useSysCP = (locale == 0 && codepage == 0);
|
||||
UBool useSysCP = (UBool)(locale == 0 && codepage == 0);
|
||||
UFILE *result = (UFILE*) malloc(sizeof(UFILE));
|
||||
if(result == 0)
|
||||
return 0;
|
||||
@ -206,7 +206,7 @@ u_finit(FILE *f,
|
||||
const char *codepage)
|
||||
{
|
||||
UErrorCode status = U_ZERO_ERROR;
|
||||
UBool useSysCP = (locale == NULL && codepage == NULL);
|
||||
UBool useSysCP = (UBool)(locale == NULL && codepage == NULL);
|
||||
UFILE *result = (UFILE*) malloc(sizeof(UFILE));
|
||||
if(result == 0)
|
||||
return 0;
|
||||
|
@ -35,7 +35,7 @@ ufmt_isdigit(UChar c,
|
||||
{
|
||||
int digitVal = ufmt_digitvalue(c);
|
||||
|
||||
return (digitVal < radix && digitVal >= 0);
|
||||
return (UBool)(digitVal < radix && digitVal >= 0);
|
||||
}
|
||||
|
||||
#define TO_UC_DIGIT(a) a <= 9 ? (0x0030 + a) : (0x0030 + a + 7)
|
||||
@ -118,7 +118,7 @@ ufmt_utol(const UChar *buffer,
|
||||
UBool
|
||||
ufmt_isws(UChar c)
|
||||
{
|
||||
return (c == 0x0020 || /* space */
|
||||
return (UBool)(c == 0x0020 || /* space */
|
||||
c == 0x0009 || /* tab */
|
||||
c == 0x000D || /* CR */
|
||||
c == 0x000A || /* LF */
|
||||
|
Loading…
Reference in New Issue
Block a user