diff --git a/include/tins/sniffer.h b/include/tins/sniffer.h index a8b28911..c759c597 100644 --- a/include/tins/sniffer.h +++ b/include/tins/sniffer.h @@ -678,7 +678,7 @@ void Tins::BaseSniffer::sniff_loop(Functor function, uint32_t max_packets) { return; } #else - if (!function(*it->pdu())) { + if (!function((Tins::Packet &)*it->pdu())) { return; } #endif