ICU-3851 Fix for an old AIX xlc compiler.
X-SVN-Rev: 15896
This commit is contained in:
parent
7ccaeb957e
commit
37ecb499d4
@ -145,7 +145,7 @@ IntlTestRBNFParse::TestParse() {
|
||||
void
|
||||
IntlTestRBNFParse::testfmt(RuleBasedNumberFormat* formatter, double val, UErrorCode& status) {
|
||||
UnicodeString us;
|
||||
formatter->format(val, us, status);
|
||||
formatter->format((const Formattable)val, us, status);
|
||||
if (U_SUCCESS(status)) {
|
||||
us.insert(0, (UChar)'"');
|
||||
us.append((UChar)'"');
|
||||
@ -158,7 +158,7 @@ IntlTestRBNFParse::testfmt(RuleBasedNumberFormat* formatter, double val, UErrorC
|
||||
void
|
||||
IntlTestRBNFParse::testfmt(RuleBasedNumberFormat* formatter, int val, UErrorCode& status) {
|
||||
UnicodeString us;
|
||||
formatter->format((int32_t)val, us, status);
|
||||
formatter->format((const Formattable)(int32_t)val, us, status);
|
||||
if (U_SUCCESS(status)) {
|
||||
us.insert(0, (UChar)'"');
|
||||
us.append((UChar)'"');
|
||||
|
Loading…
Reference in New Issue
Block a user