diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-03-20 20:26:21 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-03-20 20:26:21 +0000 |
commit | df2af1147fc250cee73853cd9c78d5afeb9e2591 (patch) | |
tree | 196522701abbd27a6d192d8d5ab21f5a038c8fdb /vm_insnhelper.c | |
parent | 02df0f38df43395debdab80a24fabd8a0e3eb097 (diff) | |
download | ruby-df2af1147fc250cee73853cd9c78d5afeb9e2591.tar.gz |
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
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |