Fix a segfault in test on glibc 2.26 #551

This commit is contained in:
Victor Zverovich 2017-08-06 20:18:04 -07:00
parent d16c4d20f8
commit 6655e804c4

View File

@ -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());
}