ruby-changes:61917
From: Takashi <ko1@a...>
Date: Wed, 24 Jun 2020 15:50:49 +0900 (JST)
Subject: [ruby-changes:61917] 6ecef1199e (master): Add missing cast
https://git.ruby-lang.org/ruby.git/commit/?id=6ecef1199e From 6ecef1199e176753b69bcbe10fc6e66d1df06985 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> Date: Tue, 23 Jun 2020 23:50:31 -0700 Subject: Add missing cast diff --git a/iseq.c b/iseq.c index 2f25e18..73423d9 100644 --- a/iseq.c +++ b/iseq.c @@ -3130,7 +3130,7 @@ rb_vm_encoded_insn_data_table_init(void) https://github.com/ruby/ruby/blob/trunk/iseq.c#L3130 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); -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/