From 24e7755287e5f42001e9314d8588bba2aca5e9c5 Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Thu, 30 May 2024 09:43:34 -0700 Subject: [PATCH] x --- src/core/lib/gprpp/dual_ref_counted.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/lib/gprpp/dual_ref_counted.h b/src/core/lib/gprpp/dual_ref_counted.h index a130fcdcbaa..38365db381b 100644 --- a/src/core/lib/gprpp/dual_ref_counted.h +++ b/src/core/lib/gprpp/dual_ref_counted.h @@ -217,7 +217,7 @@ class DualRefCounted : public Impl { CHECK_GT(weak_refs, 0u); #endif if (GPR_UNLIKELY(prev_ref_pair == MakeRefPair(0, 1))) { - unref_behavior_(const_cast(static_cast(this))); + unref_behavior_(static_cast(this)); } } void WeakUnref(const DebugLocation& location, const char* reason) { @@ -244,7 +244,7 @@ class DualRefCounted : public Impl { (void)reason; #endif if (GPR_UNLIKELY(prev_ref_pair == MakeRefPair(0, 1))) { - unref_behavior_(const_cast(static_cast(this))); + unref_behavior_(static_cast(this)); } }