2019-10-09 10:05:45 +02:00
|
|
|
From: rguenther@suse.com
|
|
|
|
References: http://bugzilla.opensuse.org/1030253
|
|
|
|
|
|
|
|
Avoid FixedPrecision::initVisibleDigits failure on i586 with GCC 7.
|
2018-08-06 23:02:49 +02:00
|
|
|
|
2018-07-29 12:17:10 +02:00
|
|
|
---
|
2019-04-01 17:27:24 +02:00
|
|
|
source/test/intltest/dcfmapts.cpp | 6 ++++--
|
|
|
|
1 file changed, 4 insertions(+), 2 deletions(-)
|
2018-07-29 12:17:10 +02:00
|
|
|
|
2018-08-06 23:02:49 +02:00
|
|
|
Index: icu/source/test/intltest/dcfmapts.cpp
|
2018-07-29 12:17:10 +02:00
|
|
|
===================================================================
|
2018-08-06 23:02:49 +02:00
|
|
|
--- icu.orig/source/test/intltest/dcfmapts.cpp
|
|
|
|
+++ icu/source/test/intltest/dcfmapts.cpp
|
2022-04-11 20:17:04 +02:00
|
|
|
@@ -875,7 +875,8 @@ void IntlTestDecimalFormatAPI::TestFixed
|
2018-08-06 23:02:49 +02:00
|
|
|
ASSERT_EQUAL(22, fd.getPluralOperand(PLURAL_OPERAND_V));
|
|
|
|
ASSERT_EQUAL(1234567890123456789LL, fd.getPluralOperand(PLURAL_OPERAND_F));
|
|
|
|
ASSERT_EQUAL(1234567890123456789LL, fd.getPluralOperand(PLURAL_OPERAND_T));
|
|
|
|
- ASSERT_EQUAL(345678901234567890LL, fd.getPluralOperand(PLURAL_OPERAND_I));
|
2018-08-07 14:01:01 +02:00
|
|
|
+ volatile double xxa = fd.getPluralOperand(PLURAL_OPERAND_I);
|
|
|
|
+ ASSERT_EQUAL(345678901234567890LL, xxa);
|
2018-08-06 23:02:49 +02:00
|
|
|
ASSERT_EQUAL(FALSE, fd.hasIntegerValue());
|
|
|
|
ASSERT_EQUAL(FALSE, fd.isNegative());
|
|
|
|
|
2022-04-11 20:17:04 +02:00
|
|
|
@@ -970,7 +971,8 @@ void IntlTestDecimalFormatAPI::TestFixed
|
2019-04-01 17:27:24 +02:00
|
|
|
ASSERT_EQUAL(0, fd.getPluralOperand(PLURAL_OPERAND_T));
|
2018-08-07 14:01:01 +02:00
|
|
|
// note: going through DigitList path to FixedDecimal, which is trimming
|
2018-08-06 23:02:49 +02:00
|
|
|
// int64_t fields to 18 digits. See ticket Ticket #10374
|
2019-04-01 17:27:24 +02:00
|
|
|
- ASSERT_EQUAL(223372036854775807LL, fd.getPluralOperand(PLURAL_OPERAND_I));
|
2018-08-07 14:01:01 +02:00
|
|
|
+ volatile double xxb = fd.getPluralOperand(PLURAL_OPERAND_I);
|
2019-04-01 17:27:24 +02:00
|
|
|
+ ASSERT_EQUAL(223372036854775807LL, xxb);
|
2018-08-06 23:02:49 +02:00
|
|
|
ASSERT_EQUAL(TRUE, fd.hasIntegerValue());
|
|
|
|
ASSERT_EQUAL(FALSE, fd.isNegative());
|
2019-04-01 17:27:24 +02:00
|
|
|
|