From 6ecef1199e176753b69bcbe10fc6e66d1df06985 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Tue, 23 Jun 2020 23:50:31 -0700 Subject: [PATCH] Add missing cast --- iseq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iseq.c b/iseq.c index 2f25e187bf..73423d9074 100644 --- a/iseq.c +++ b/iseq.c @@ -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);