Merge pull request #17326 from protocolbuffers/cp-ruby

[Ruby] Fix mismatched pointer type (#17240)
pull/17473/head
zhangskz 8 months ago committed by GitHub
commit 7592817d04
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      ruby/ext/google/protobuf_c/defs.c

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

Loading…
Cancel
Save