ruby-changes:55111
From: ko1 <ko1@a...>
Date: Thu, 21 Mar 2019 05:26:26 +0900 (JST)
Subject: [ruby-changes:55111] ko1:r67318 (trunk): fix a type error with a cast for clang.
ko1 2019-03-21 05:26:21 +0900 (Thu, 21 Mar 2019) New Revision: 67318 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67318 Log: fix a type error with a cast for clang. Modified files: trunk/vm_insnhelper.c Index: vm_insnhelper.c =================================================================== --- vm_insnhelper.c (revision 67317) +++ vm_insnhelper.c (revision 67318) @@ -1752,7 +1752,7 @@ vm_call_iseq_setup_normal_opt_start(rb_e https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L1752 const int lead_num = iseq->body->param.lead_num; const int opt = calling->argc - lead_num; const int opt_num = iseq->body->param.opt_num; - const int opt_pc = iseq->body->param.opt_table[opt]; + const int opt_pc = (int)iseq->body->param.opt_table[opt]; const int param = iseq->body->param.size; const int local = iseq->body->local_table_size; const int delta = opt_num - opt; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/