diff --git a/src/clp_ffi_js/ir/StreamReader.cpp b/src/clp_ffi_js/ir/StreamReader.cpp index ac4f712e..6091787b 100644 --- a/src/clp_ffi_js/ir/StreamReader.cpp +++ b/src/clp_ffi_js/ir/StreamReader.cpp @@ -114,10 +114,10 @@ void StreamReader::filter_log_events(emscripten::val const& log_level_filter) { } m_filtered_log_event_map.emplace(); - auto filter_levels{emscripten::vecFromJSArray(log_level_filter)}; + auto filter_levels{emscripten::vecFromJSArray(log_level_filter)}; for (size_t log_event_idx = 0; log_event_idx < m_encoded_log_events.size(); ++log_event_idx) { auto const& log_event = m_encoded_log_events[log_event_idx]; - if (std::ranges::find(filter_levels, log_event.get_log_level()) != filter_levels.end()) { + if (std::ranges::find(filter_levels, static_cast(log_event.get_log_level())) != filter_levels.end()) { m_filtered_log_event_map->emplace_back(log_event_idx); } }