Skip to content

Commit 8e6a251

Browse files
committed
Remove unnecessary and misleading casts
1 parent 46b8846 commit 8e6a251

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compile.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3886,11 +3886,11 @@ iseq_specialized_instruction(rb_iseq_t *iseq, INSN *iobj)
38863886
case idMin:
38873887
case idHash:
38883888
{
3889-
rb_num_t num = (rb_num_t)iobj->operands[0];
3889+
VALUE num = iobj->operands[0];
38903890
iobj->insn_id = BIN(opt_newarray_send);
38913891
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));
3892+
iobj->operands[0] = num;
3893+
iobj->operands[1] = rb_id2sym(vm_ci_mid(ci));
38943894
iobj->operand_size = insn_len(iobj->insn_id) - 1;
38953895
ELEM_REMOVE(&niobj->link);
38963896
return COMPILE_OK;

0 commit comments

Comments
 (0)