We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46b8846 commit 8e6a251Copy full SHA for 8e6a251
compile.c
@@ -3886,11 +3886,11 @@ iseq_specialized_instruction(rb_iseq_t *iseq, INSN *iobj)
3886
case idMin:
3887
case idHash:
3888
{
3889
- rb_num_t num = (rb_num_t)iobj->operands[0];
+ VALUE num = iobj->operands[0];
3890
iobj->insn_id = BIN(opt_newarray_send);
3891
iobj->operands = compile_data_calloc2(iseq, insn_len(iobj->insn_id) - 1, sizeof(VALUE));
3892
- iobj->operands[0] = (VALUE)num;
3893
- iobj->operands[1] = (VALUE)rb_id2sym(vm_ci_mid(ci));
+ iobj->operands[0] = num;
+ iobj->operands[1] = rb_id2sym(vm_ci_mid(ci));
3894
iobj->operand_size = insn_len(iobj->insn_id) - 1;
3895
ELEM_REMOVE(&niobj->link);
3896
return COMPILE_OK;
0 commit comments