diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-10-18 18:27:01 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-10-18 18:52:05 +0900 |
commit | 8e6a2511387f47894407ea92494c0f5d3cdb51b8 (patch) | |
tree | 5a8901d094f678cff3c35fef4703e542e91daeab /compile.c | |
parent | 46b8846b5c40cf4053f678dae1684f1c6eb52673 (diff) | |
download | ruby-8e6a2511387f47894407ea92494c0f5d3cdb51b8.tar.gz |
Remove unnecessary and misleading casts
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3886,11 +3886,11 @@ iseq_specialized_instruction(rb_iseq_t *iseq, INSN *iobj) case idMin: case idHash: { - rb_num_t num = (rb_num_t)iobj->operands[0]; + VALUE num = iobj->operands[0]; iobj->insn_id = BIN(opt_newarray_send); iobj->operands = compile_data_calloc2(iseq, insn_len(iobj->insn_id) - 1, sizeof(VALUE)); - iobj->operands[0] = (VALUE)num; - iobj->operands[1] = (VALUE)rb_id2sym(vm_ci_mid(ci)); + iobj->operands[0] = num; + iobj->operands[1] = rb_id2sym(vm_ci_mid(ci)); iobj->operand_size = insn_len(iobj->insn_id) - 1; ELEM_REMOVE(&niobj->link); return COMPILE_OK; |