Remove unnecessary and misleading casts
This commit is contained in:
parent
46b8846b5c
commit
8e6a251138
@ -3886,11 +3886,11 @@ iseq_specialized_instruction(rb_iseq_t *iseq, INSN *iobj)
|
|||||||
case idMin:
|
case idMin:
|
||||||
case idHash:
|
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->insn_id = BIN(opt_newarray_send);
|
||||||
iobj->operands = compile_data_calloc2(iseq, insn_len(iobj->insn_id) - 1, sizeof(VALUE));
|
iobj->operands = compile_data_calloc2(iseq, insn_len(iobj->insn_id) - 1, sizeof(VALUE));
|
||||||
iobj->operands[0] = (VALUE)num;
|
iobj->operands[0] = num;
|
||||||
iobj->operands[1] = (VALUE)rb_id2sym(vm_ci_mid(ci));
|
iobj->operands[1] = rb_id2sym(vm_ci_mid(ci));
|
||||||
iobj->operand_size = insn_len(iobj->insn_id) - 1;
|
iobj->operand_size = insn_len(iobj->insn_id) - 1;
|
||||||
ELEM_REMOVE(&niobj->link);
|
ELEM_REMOVE(&niobj->link);
|
||||||
return COMPILE_OK;
|
return COMPILE_OK;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user