Force use a signed char (On ARM char is unsigned by default) (#3362)

Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
This commit is contained in:
Vladislav Shchapov 2023-03-22 23:34:59 +05:00 committed by GitHub
parent 6002ddf825
commit f6276a2c2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -820,9 +820,10 @@ TEST(chrono_test, cpp20_duration_subsecond_support) {
std::chrono::duration<long long, std::ratio<1, 7>>(1)),
"00.142857");
EXPECT_EQ(fmt::format("{:%S}",
std::chrono::duration<char, std::ratio<1, 100>>(0x80)),
"-01.28");
EXPECT_EQ(
fmt::format("{:%S}",
std::chrono::duration<signed char, std::ratio<1, 100>>(0x80)),
"-01.28");
EXPECT_EQ(
fmt::format("{:%M:%S}",