Removed unnecessary cast

This commit is contained in:
Nobuyoshi Nakada 2020-04-07 20:20:34 +09:00
parent bc646e6715
commit ce60821387
No known key found for this signature in database
GPG Key ID: 7CD2805BFA3770C6
Notes: git 2025-04-09 13:49:37 +00:00

View File

@ -2123,9 +2123,8 @@ autoload_defined_p(VALUE mod, ID id)
static void const_tbl_update(struct autoload_const *);
static VALUE
autoload_const_set(VALUE arg)
autoload_const_set(struct autoload_const *ac)
{
struct autoload_const *ac = (struct autoload_const *)arg;
VALUE klass = ac->mod;
ID id = ac->id;
check_before_mod_set(klass, id, ac->value, "constant");
@ -2169,7 +2168,7 @@ autoload_reset(VALUE arg)
list_for_each_safe(&ele->constants, ac, next, cnode) {
if (ac->value != Qundef) {
autoload_const_set((VALUE)ac);
autoload_const_set(ac);
}
}
}