ruby-changes:52313
From: mame <ko1@a...>
Date: Thu, 23 Aug 2018 17:49:33 +0900 (JST)
Subject: [ruby-changes:52313] mame:r64521 (trunk): iseq.c (rb_vm_encoded_insn_data_table_init): add a cast to build on clang
mame 2018-08-23 17:49:23 +0900 (Thu, 23 Aug 2018) New Revision: 64521 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64521 Log: iseq.c (rb_vm_encoded_insn_data_table_init): add a cast to build on clang Modified files: trunk/iseq.c Index: iseq.c =================================================================== --- iseq.c (revision 64520) +++ iseq.c (revision 64521) @@ -2890,7 +2890,7 @@ rb_vm_encoded_insn_data_table_init(void) https://github.com/ruby/ruby/blob/trunk/iseq.c#L2890 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; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/