From e0688029ca9392507252a9b9e2d5ce5f95e88035 Mon Sep 17 00:00:00 2001 From: Peter Edberg Date: Wed, 17 Oct 2012 21:54:06 +0000 Subject: [PATCH] ICU-9672 Add casts to avoid warnings X-SVN-Rev: 32650 --- icu4c/source/i18n/utmscale.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/icu4c/source/i18n/utmscale.c b/icu4c/source/i18n/utmscale.c index 33f5d9212d..8db051d2cd 100644 --- a/icu4c/source/i18n/utmscale.c +++ b/icu4c/source/i18n/utmscale.c @@ -1,6 +1,6 @@ /* ******************************************************************************* -* Copyright (C) 2004-2006, International Business Machines Corporation and +* Copyright (C) 2004-2012, International Business Machines Corporation and * others. All Rights Reserved. ******************************************************************************* */ @@ -60,7 +60,7 @@ utmscale_fromInt64(int64_t otherTime, UDateTimeScale timeScale, UErrorCode *stat return 0; } - if (timeScale < 0 || timeScale >= UDTS_MAX_SCALE) { + if ((int32_t)timeScale < 0 || timeScale >= UDTS_MAX_SCALE) { *status = U_ILLEGAL_ARGUMENT_ERROR; return 0; } @@ -84,7 +84,7 @@ utmscale_toInt64(int64_t universalTime, UDateTimeScale timeScale, UErrorCode *st return 0; } - if (timeScale < 0 || timeScale >= UDTS_MAX_SCALE) { + if ((int32_t)timeScale < 0 || timeScale >= UDTS_MAX_SCALE) { *status = U_ILLEGAL_ARGUMENT_ERROR; return 0; }