/*
*******************************************************************************
-* Copyright (C) 2004-2006, International Business Machines Corporation and
+* Copyright (C) 2004-2012, International Business Machines Corporation and
* others. All Rights Reserved.
*******************************************************************************
*/
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;
}
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;
}