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

Add another missing cast

This commit is contained in:
Takashi Kokubun 2020-06-23 23:57:26 -07:00
parent e0037997d9
commit 737da8d383
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

2
iseq.c
View file

@ -3125,7 +3125,7 @@ rb_vm_encoded_insn_data_table_init(void)
encoded_insn_data = st_init_numtable_with_size(VM_INSTRUCTION_SIZE / 2); encoded_insn_data = st_init_numtable_with_size(VM_INSTRUCTION_SIZE / 2);
for (insn = 0; insn < VM_INSTRUCTION_SIZE/2; insn++) { for (insn = 0; insn < VM_INSTRUCTION_SIZE/2; insn++) {
int traced_insn = insn; int traced_insn = (int)insn;
if (traced_insn == BIN(opt_invokebuiltin_delegate_leave)) { if (traced_insn == BIN(opt_invokebuiltin_delegate_leave)) {
traced_insn = BIN(opt_invokebuiltin_delegate); // to dispatch :return from leave traced_insn = BIN(opt_invokebuiltin_delegate); // to dispatch :return from leave
} }