From a757ba12f3b9a0d2ff7f4e18c23a8d3e3b884e38 Mon Sep 17 00:00:00 2001 From: Tim Wojtulewicz Date: Wed, 11 Jan 2023 17:43:51 -0700 Subject: [PATCH] Fix MSVC compiler warning due to a type mismatch --- src/plugin/ComponentManager.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugin/ComponentManager.h b/src/plugin/ComponentManager.h index 927867fe1d..8f41405105 100644 --- a/src/plugin/ComponentManager.h +++ b/src/plugin/ComponentManager.h @@ -151,7 +151,7 @@ private: std::map components_by_name; std::map components_by_tag; - std::map components_by_val; + std::map components_by_val; }; template @@ -288,7 +288,8 @@ template C* ComponentManager::Lookup(const zeek::Tag& tag) const template C* ComponentManager::Lookup(EnumVal* val) const { - typename std::map::const_iterator i = components_by_val.find(val->InternalInt()); + typename std::map::const_iterator i = components_by_val.find( + val->InternalInt()); return i != components_by_val.end() ? i->second : nullptr; }