mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-05 20:41:06 +00:00
Fix a segfault in test on glibc 2.26 #551
This commit is contained in:
parent
d16c4d20f8
commit
6655e804c4
@ -838,7 +838,7 @@ TEST(UtilTest, FormatSystemError) {
|
||||
EXPECT_EQ(fmt::format("test: {}", get_system_error(EDOM)), message.str());
|
||||
message.clear();
|
||||
fmt::format_system_error(
|
||||
message, EDOM, fmt::StringRef(0, std::numeric_limits<size_t>::max()));
|
||||
message, EDOM, fmt::StringRef(0, std::numeric_limits<ssize_t>::max()));
|
||||
EXPECT_EQ(fmt::format("error {}", EDOM), message.str());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user