diff --git a/hpb/extension.h b/hpb/extension.h index 722480c5f92b..aadb88e25c59 100644 --- a/hpb/extension.h +++ b/hpb/extension.h @@ -302,7 +302,7 @@ GetExtension( upb_MiniTableExtension_Number(id.mini_table_ext())); } return Ptr(::hpb::interop::upb::MakeCHandle( - (upb_Message*)value.msg_val, hpb::interop::upb::GetArena(message))); + value.msg_val, hpb::interop::upb::GetArena(message))); } }