mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
Get rid of type-punning pointer casts
This commit is contained in:
parent
9e58c3c519
commit
7b1ece9b94
4 changed files with 18 additions and 17 deletions
|
@ -1021,8 +1021,9 @@ rb_vm_lookup_overloaded_cme(const rb_callable_method_entry_t *cme)
|
|||
static void
|
||||
delete_overloaded_cme(const rb_callable_method_entry_t *cme)
|
||||
{
|
||||
st_data_t cme_data = (st_data_t)cme;
|
||||
ASSERT_vm_locking();
|
||||
st_delete(overloaded_cme_table(), (st_data_t *)&cme, NULL);
|
||||
st_delete(overloaded_cme_table(), &cme_data, NULL);
|
||||
}
|
||||
|
||||
static const rb_callable_method_entry_t *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue