ICU-10339 Fix build error on Cygwin/gcc (INT64_MAX) instead of (U_INT64_MAX)

X-SVN-Rev: 34122
This commit is contained in:
John Emmons 2013-08-29 17:13:06 +00:00
parent 2f02059dda
commit 3f712e7635

View File

@ -1421,8 +1421,8 @@ int64_t FixedDecimal::getFractionalDigits(double n, int32_t v) {
case 3: return (int64_t)(fract*1000.0 + 0.5);
default:
double scaled = floor(fract * pow(10.0, v) + 0.5);
if (scaled > INT64_MAX) {
return INT64_MAX;
if (scaled > U_INT64_MAX) {
return U_INT64_MAX;
} else {
return (int64_t)scaled;
}