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)); } }