Get rid of type-punning pointer casts

This commit is contained in:
Nobuyoshi Nakada 2022-04-07 19:19:13 +09:00
parent 9e58c3c519
commit 7b1ece9b94
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
4 changed files with 18 additions and 17 deletions

View file

@ -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 *