mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Remove useless casts
This commit is contained in:
parent
ec021e469d
commit
8d6dbecc80
1 changed files with 2 additions and 2 deletions
|
@ -787,7 +787,7 @@ cref_replace_with_duplicated_cref_each_frame(const VALUE *vptr, int can_be_svar,
|
|||
return (rb_cref_t *)new_cref;
|
||||
case imemo_svar:
|
||||
if (can_be_svar) {
|
||||
return cref_replace_with_duplicated_cref_each_frame((const VALUE *)&((struct vm_svar *)v)->cref_or_me, FALSE, v);
|
||||
return cref_replace_with_duplicated_cref_each_frame(&((struct vm_svar *)v)->cref_or_me, FALSE, v);
|
||||
}
|
||||
/* fall through */
|
||||
case imemo_ment:
|
||||
|
@ -877,7 +877,7 @@ rb_vm_rewrite_cref(rb_cref_t *cref, VALUE old_klass, VALUE new_klass, rb_cref_t
|
|||
new_cref = vm_cref_new_use_prev(CREF_CLASS(cref), METHOD_VISI_UNDEF, FALSE, cref, FALSE);
|
||||
cref = CREF_NEXT(cref);
|
||||
*new_cref_ptr = new_cref;
|
||||
new_cref_ptr = (rb_cref_t **)&new_cref->next;
|
||||
new_cref_ptr = &new_cref->next;
|
||||
}
|
||||
*new_cref_ptr = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue