diff --git a/test/server/options_impl_test.cc b/test/server/options_impl_test.cc index 1f2dc3c87cce5..7cbd9474ddb10 100644 --- a/test/server/options_impl_test.cc +++ b/test/server/options_impl_test.cc @@ -252,7 +252,7 @@ TEST_F(OptionsImplTest, OptionsAreInSyncWithProto) { TEST_F(OptionsImplTest, OptionsFromArgv) { const std::array args{"envoy", "-c", "hello"}; std::unique_ptr options = std::make_unique( - args.size(), args.data(), [](bool) { return "1"; }, spdlog::level::warn); + static_cast(args.size()), args.data(), [](bool) { return "1"; }, spdlog::level::warn); // Spot check that the arguments were parsed. EXPECT_EQ("hello", options->configPath()); } @@ -260,7 +260,7 @@ TEST_F(OptionsImplTest, OptionsFromArgv) { TEST_F(OptionsImplTest, OptionsFromArgvPrefix) { const std::array args{"envoy", "-c", "hello", "--admin-address-path", "goodbye"}; std::unique_ptr options = std::make_unique( - args.size() - 2, // Pass in only a prefix of the args + static_cast(args.size()) - 2, // Pass in only a prefix of the args args.data(), [](bool) { return "1"; }, spdlog::level::warn); EXPECT_EQ("hello", options->configPath()); // This should still have the default value since the extra arguments are