ICU-7911 fixed formatting issue

X-SVN-Rev: 28683
This commit is contained in:
Alexey Gousev 2010-09-22 19:59:41 +00:00
parent 40d22aabc1
commit e69698280f

View file

@ -439,10 +439,10 @@ Formattable::getInt64(UErrorCode& status) const
case Formattable::kInt64:
return fValue.fInt64;
case Formattable::kDouble:
if (fValue.fDouble > U_INT64_MAX) {
if (fValue.fDouble >= U_INT64_MAX) {
status = U_INVALID_FORMAT_ERROR;
return U_INT64_MAX;
} else if (fValue.fDouble < U_INT64_MIN) {
} else if (fValue.fDouble <= U_INT64_MIN) {
status = U_INVALID_FORMAT_ERROR;
return U_INT64_MIN;
} else {