Skip to content

Commit

Permalink
Fix a segfault in test on glibc 2.26 #551
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Aug 7, 2017
1 parent d16c4d2 commit 6655e80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/util-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit 6655e80

Please sign in to comment.