1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Add missing cast

This commit is contained in:
Takashi Kokubun 2020-06-23 23:50:31 -07:00
parent 946e5cc668
commit 6ecef1199e
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

2
iseq.c
View file

@ -3130,7 +3130,7 @@ rb_vm_encoded_insn_data_table_init(void)
traced_insn = BIN(opt_invokebuiltin_delegate); // to dispatch :return from leave
}
st_data_t key1 = (st_data_t)INSN_CODE(insn);
st_data_t key2 = (st_data_t)INSN_CODE(traced_insn + VM_INSTRUCTION_SIZE/2);
st_data_t key2 = (st_data_t)INSN_CODE((st_data_t)traced_insn + VM_INSTRUCTION_SIZE/2);
insn_data[insn].insn = (int)insn;
insn_data[insn].insn_len = insn_len(insn);