diff --git a/test/server/options_impl_test.cc b/test/server/options_impl_test.cc index efbc9cc15c2b..859ee88005f5 100644 --- a/test/server/options_impl_test.cc +++ b/test/server/options_impl_test.cc @@ -253,7 +253,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()); } @@ -261,7 +261,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