Skip to content

Commit

Permalink
Fix mismatched pointer type
Browse files Browse the repository at this point in the history
  • Loading branch information
ntkme authored Jun 25, 2024
1 parent 3836fd3 commit 22e9859
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 22e9859

Please sign in to comment.