From 44df3087d60a78f133eb9806e0b89bd0fe6fe1e2 Mon Sep 17 00:00:00 2001 From: Elad Solomon Date: Thu, 8 Sep 2022 19:57:52 +0300 Subject: [PATCH] Fixed intrusive ptr conversion to Obj* --- src/IntrusivePtr.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/IntrusivePtr.h b/src/IntrusivePtr.h index 93efcc0a71..2d8767cb0d 100644 --- a/src/IntrusivePtr.h +++ b/src/IntrusivePtr.h @@ -6,6 +6,8 @@ #include #include +#include "Obj.h" + namespace zeek { @@ -111,7 +113,7 @@ public: ~IntrusivePtr() { if ( ptr_ ) - Unref(ptr_); + Unref((zeek::Obj*)ptr_); } void swap(IntrusivePtr& other) noexcept { std::swap(ptr_, other.ptr_); }