ICU-813 fix for linux builds

X-SVN-Rev: 13560
This commit is contained in:
Doug Felt 2003-11-04 01:55:54 +00:00
parent df64b740f4
commit 29e65256c7

View File

@ -393,13 +393,13 @@ NumberFormatTest::TestInt64() {
DecimalFormat fmt("#.#E0",status); DecimalFormat fmt("#.#E0",status);
fmt.setMaximumFractionDigits(20); fmt.setMaximumFractionDigits(20);
if (U_SUCCESS(status)) { if (U_SUCCESS(status)) {
expect(fmt, (int64_t)0, "0E0"); expect(fmt, (Formattable)(int64_t)0, "0E0");
expect(fmt, (int64_t)-1, "-1E0"); expect(fmt, (Formattable)(int64_t)-1, "-1E0");
expect(fmt, (int64_t)1, "1E0"); expect(fmt, (Formattable)(int64_t)1, "1E0");
expect(fmt, (int64_t)2147483647, "2.147483647E9"); expect(fmt, (Formattable)(int64_t)2147483647, "2.147483647E9");
expect(fmt, (int64_t)-2147483647-1, "-2.147483648E9"); expect(fmt, (Formattable)((int64_t)-2147483647-1), "-2.147483648E9");
expect(fmt, (int64_t)9223372036854775807, "9.223372036854775807E18"); expect(fmt, (Formattable)(int64_t)9223372036854775807, "9.223372036854775807E18");
expect(fmt, (int64_t)-9223372036854775807-1, "-9.223372036854775808E18"); expect(fmt, (Formattable)((int64_t)-9223372036854775807-1), "-9.223372036854775808E18");
} }
// also test digitlist // also test digitlist