mirror of
https://github.com/shadps4-emu/ext-fmt.git
synced 2024-12-04 00:01:06 +00:00
Suppress a -Wliteral-range warning on Apple M1 (#2861)
This commit is contained in:
parent
5d804ee7fe
commit
ffb5e6a732
@ -1009,8 +1009,9 @@ TEST(format_test, precision) {
|
||||
if (std::numeric_limits<long double>::digits == 64) {
|
||||
auto ld = (std::numeric_limits<long double>::min)();
|
||||
EXPECT_EQ(fmt::format("{:.0}", ld), "3e-4932");
|
||||
EXPECT_EQ(fmt::format("{:0g}", 5.02957084971264961283E-4940L),
|
||||
"5.02957e-4940");
|
||||
EXPECT_EQ(
|
||||
fmt::format("{:0g}", std::numeric_limits<long double>::denorm_min()),
|
||||
"3.6452e-4951");
|
||||
}
|
||||
|
||||
EXPECT_EQ("123.", fmt::format("{:#.0f}", 123.0));
|
||||
|
Loading…
Reference in New Issue
Block a user