summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-23 08:49:23 (GMT)
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-23 08:49:23 (GMT)
commit7c9af3e1961bdfd2f9a4dcdd3b9758696586def0 (patch)
tree9dfd3a1151f78a1c23eebb3d48e636c9b74e28eb /iseq.c
parent57a5a3ebcd85038623dbb1c4600f1783a829a5c2 (diff)
iseq.c (rb_vm_encoded_insn_data_table_init): add a cast to build on clang
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iseq.c b/iseq.c
index 112f588..487a6d6 100644
--- a/iseq.c
+++ b/iseq.c
@@ -2890,7 +2890,7 @@ rb_vm_encoded_insn_data_table_init(void)
st_data_t key1 = (st_data_t)INSN_CODE(insn);
st_data_t key2 = (st_data_t)INSN_CODE(insn + VM_INSTRUCTION_SIZE/2);
- insn_data[insn].insn = insn;
+ insn_data[insn].insn = (int)insn;
insn_data[insn].insn_len = insn_len(insn);
insn_data[insn].notrace_encoded_insn = (void *) key1;
insn_data[insn].trace_encoded_insn = (void *) key2;