ICU-535 fixed some compiler warnings

X-SVN-Rev: 2377
This commit is contained in:
George Rhoten 2000-08-29 16:41:47 +00:00
parent ca7cfcfe16
commit 06b21bb2d8
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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 */