X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2Ficu%2Fsource%2Fi18n%2Futmscale.c;h=8db051d2cde3afee5d9f9be8493c8cfc2b150caa;hb=4a1a0bdd01eef90b0826a0e761d3379d3715c10f;hp=33f5d9212d07897cf9541d9121833d993b48de7e;hpb=b1be5ca53587d23e7aeb77b26861fdc0a181ffd8;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/icu/source/i18n/utmscale.c b/src/third_party/icu/source/i18n/utmscale.c index 33f5d92..8db051d 100644 --- a/src/third_party/icu/source/i18n/utmscale.c +++ b/src/third_party/icu/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; }