aboutsummaryrefslogtreecommitdiffstats
path: root/vm_method.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-04-07 19:19:13 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-04-07 19:19:13 +0900
commit7b1ece9b9490a892861f2336ae41d611a06bdf2b (patch)
tree8d839a3fc151393bef5bfed1ee9a37bf465430b4 /vm_method.c
parent9e58c3c5195f0745ba7f125a3478046c5eb3acd7 (diff)
downloadruby-7b1ece9b9490a892861f2336ae41d611a06bdf2b.tar.gz
Get rid of type-punning pointer casts
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vm_method.c b/vm_method.c
index 36a2c15e4b..c4b95f9391 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -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 *