From df2af1147fc250cee73853cd9c78d5afeb9e2591 Mon Sep 17 00:00:00 2001 From: ko1 Date: Wed, 20 Mar 2019 20:26:21 +0000 Subject: [PATCH] fix a type error with a cast for clang. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_insnhelper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 63e84f8708..51340eee20 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -1752,7 +1752,7 @@ vm_call_iseq_setup_normal_opt_start(rb_execution_context_t *ec, rb_control_frame 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;