Skip to content

Commit

Permalink
Merge pull request #17326 from protocolbuffers/cp-ruby
Browse files Browse the repository at this point in the history
[Ruby] Fix mismatched pointer type (#17240)
  • Loading branch information
zhangskz committed Jul 3, 2024
2 parents 2440498 + a1d4777 commit 7592817
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ruby/ext/google/protobuf_c/defs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1510,7 +1510,7 @@ static VALUE MethodDescriptor_initialize(VALUE _self, VALUE cookie,
}

RB_OBJ_WRITE(_self, &self->descriptor_pool, descriptor_pool);
self->methoddef = (const upb_ServiceDef*)NUM2ULL(ptr);
self->methoddef = (const upb_MethodDef*)NUM2ULL(ptr);

return Qnil;
}
Expand Down

0 comments on commit 7592817

Please sign in to comment.