From 3fd0234fb17145cbf79ce042332ec18b88a6ac31 Mon Sep 17 00:00:00 2001 From: Bill Slacum Date: Mon, 19 Nov 2018 22:46:30 +0000 Subject: [PATCH] coerce constant to a size_type to avoid compiler warning with gcc-7 --- test/test-agent.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test-agent.cpp b/test/test-agent.cpp index 509cd72..9245bdc 100644 --- a/test/test-agent.cpp +++ b/test/test-agent.cpp @@ -5,7 +5,8 @@ TEST(AgentTest, Basic) { Rep::Agent agent = Rep::Agent("a.com").allow("/").disallow("/foo"); - EXPECT_EQ(agent.directives().size(), 2); + auto expectedSize = static_cast::size_type>(2); + EXPECT_EQ(agent.directives().size(), expectedSize); } TEST(AgentTest, ChecksAllowed)