diff --git a/src/core/lib/channel/channel_args.h b/src/core/lib/channel/channel_args.h index 6c8a42ded67..b5bfe25cbfe 100644 --- a/src/core/lib/channel/channel_args.h +++ b/src/core/lib/channel/channel_args.h @@ -326,7 +326,9 @@ class ChannelArgs { class Value { public: - explicit Value(int n) : rep_(reinterpret_cast(n), &int_vtable_) {} + explicit Value(int n) + : rep_(reinterpret_cast(static_cast(n)), + &int_vtable_) {} explicit Value(std::string s) : rep_(RefCountedString::Make(s).release(), &string_vtable_) {} explicit Value(Pointer p) : rep_(std::move(p)) {}