@@ -342,7 +342,7 @@ uprv_isNaN(double number)
342342 BitPatternConversion convertedNumber;
343343 convertedNumber.d64 = number;
344344 /* Infinity is 0x7FF0000000000000U. Anything greater than that is a NaN */
345- return (UBool)(( convertedNumber.i64 & U_INT64_MAX) > gInf .i64 ) ;
345+ return (convertedNumber.i64 & U_INT64_MAX) > gInf .i64 ;
346346
347347#elif U_PLATFORM == U_PF_OS390
348348 uint32_t highBits = *(uint32_t *)u_topNBytesOfDouble (&number,
@@ -368,7 +368,7 @@ uprv_isInfinite(double number)
368368 BitPatternConversion convertedNumber;
369369 convertedNumber.d64 = number;
370370 /* Infinity is exactly 0x7FF0000000000000U. */
371- return (UBool)(( convertedNumber.i64 & U_INT64_MAX) == gInf .i64 ) ;
371+ return (convertedNumber.i64 & U_INT64_MAX) == gInf .i64 ;
372372#elif U_PLATFORM == U_PF_OS390
373373 uint32_t highBits = *(uint32_t *)u_topNBytesOfDouble (&number,
374374 sizeof (uint32_t ));
@@ -389,7 +389,7 @@ U_CAPI UBool U_EXPORT2
389389uprv_isPositiveInfinity (double number)
390390{
391391#if IEEE_754 || U_PLATFORM == U_PF_OS390
392- return (UBool)( number > 0 && uprv_isInfinite (number) );
392+ return number > 0 && uprv_isInfinite (number);
393393#else
394394 return uprv_isInfinite (number);
395395#endif
@@ -399,7 +399,7 @@ U_CAPI UBool U_EXPORT2
399399uprv_isNegativeInfinity (double number)
400400{
401401#if IEEE_754 || U_PLATFORM == U_PF_OS390
402- return (UBool)( number < 0 && uprv_isInfinite (number) );
402+ return number < 0 && uprv_isInfinite (number);
403403
404404#else
405405 uint32_t highBits = *(uint32_t *)u_topNBytesOfDouble (&number,
@@ -744,11 +744,11 @@ static UBool isValidOlsonID(const char *id) {
744744 The timezone is sometimes set to "CST-7CDT", "CST6CDT5,J129,J131/19:30",
745745 "GRNLNDST3GRNLNDDT" or similar, so we cannot use it.
746746 The rest of the time it could be an Olson ID. George */
747- return static_cast <UBool>( id[idx] == 0
747+ return id[idx] == 0
748748 || uprv_strcmp (id, " PST8PDT" ) == 0
749749 || uprv_strcmp (id, " MST7MDT" ) == 0
750750 || uprv_strcmp (id, " CST6CDT" ) == 0
751- || uprv_strcmp (id, " EST5EDT" ) == 0 ) ;
751+ || uprv_strcmp (id, " EST5EDT" ) == 0 ;
752752}
753753
754754/* On some Unix-like OS, 'posix' subdirectory in
0 commit comments