mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-10 07:39:16 +00:00
ICU-7911 fixed formatting issue
X-SVN-Rev: 28683
This commit is contained in:
parent
40d22aabc1
commit
e69698280f
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue