ICU-9672 Add casts to avoid warnings
X-SVN-Rev: 32650
This commit is contained in:
parent
73b05c02c4
commit
e0688029ca
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user