aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Vijay Pai <vpai@google.com>2018-02-07 10:40:28 -0800
committerGravatar Vijay Pai <vpai@google.com>2018-02-07 10:40:28 -0800
commite441452b6e5cb3ab7c277a33d65f5f35b505bdc5 (patch)
treecd3261bd6a8f56e1bf5b0c4abe9bb76f6898a2ff /src
parent2f45758699e15bb34df8d285704878fbbd3bb62c (diff)
Weaken reintepret_cast to static_cast for Orphanable
Diffstat (limited to 'src')
-rw-r--r--src/core/lib/gprpp/orphanable.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lib/gprpp/orphanable.h b/src/core/lib/gprpp/orphanable.h
index 6e127c2861..78d1b01ff8 100644
--- a/src/core/lib/gprpp/orphanable.h
+++ b/src/core/lib/gprpp/orphanable.h
@@ -92,7 +92,7 @@ class InternallyRefCounted : public Orphanable {
RefCountedPtr<Child> Ref() GRPC_MUST_USE_RESULT {
IncrementRefCount();
- return RefCountedPtr<Child>(reinterpret_cast<Child*>(this));
+ return RefCountedPtr<Child>(static_cast<Child*>(this));
}
void Unref() {
@@ -149,7 +149,7 @@ class InternallyRefCountedWithTracing : public Orphanable {
RefCountedPtr<Child> Ref() GRPC_MUST_USE_RESULT {
IncrementRefCount();
- return RefCountedPtr<Child>(reinterpret_cast<Child*>(this));
+ return RefCountedPtr<Child>(static_cast<Child*>(this));
}
RefCountedPtr<Child> Ref(const DebugLocation& location,