mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-09 07:22:11 +00:00
ICU-8199 Fix compilation errors on MacOSX introduced by previous commit of these files
X-SVN-Rev: 29260
This commit is contained in:
parent
7a2d96c7c8
commit
345c295b0f
2 changed files with 2 additions and 2 deletions
|
@ -432,7 +432,7 @@ Formattable::getLong(UErrorCode& status) const
|
|||
// Larger ints may be rounded to a near-by value as not all are representable.
|
||||
// TODO: move this constant elsewhere, possibly configure it for different
|
||||
// floating point formats, if any non-standard ones are still in use.
|
||||
static const int64_t U_DOUBLE_MAX_EXACT_INT = 9007199254740992;
|
||||
static const int64_t U_DOUBLE_MAX_EXACT_INT = 9007199254740992LL;
|
||||
|
||||
int64_t
|
||||
Formattable::getInt64(UErrorCode& status) const
|
||||
|
|
|
@ -2732,7 +2732,7 @@ void NumberFormatRegressionTest::Test8199(void) {
|
|||
TEST_ASSERT(Formattable::kDouble == val.getType());
|
||||
TEST_ASSERT(100000000000000001LL == val.getInt64(status));
|
||||
TEST_CHECK_STATUS(status);
|
||||
TEST_ASSERT(100000000000000000 == val.getDouble(status));
|
||||
TEST_ASSERT(100000000000000000.0 == val.getDouble(status));
|
||||
TEST_CHECK_STATUS(status);
|
||||
|
||||
numStr = "1E17"; // Parses with the internal decimal number having non-zero exponent
|
||||
|
|
Loading…
Add table
Reference in a new issue