aboutsummaryrefslogtreecommitdiffstats
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-29 15:25:32 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-29 15:25:32 +0000
commit1868b58704c96c512fdb917b89491595ad78a740 (patch)
treeb57c99c0ab6dcc32c541b0a5228b775c9462f656 /vm_insnhelper.c
parent1126b5545f8852f2957a1302a17c9bb25e217b94 (diff)
downloadruby-1868b58704c96c512fdb917b89491595ad78a740.tar.gz
constify `rb_vm_bh_to_procval()`
* vm_insnhelper.c (rb_vm_bh_to_procval): constify 1st param (ec). * vm_args.c (args_setup_block_parameter): accepts (const) `ec`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index a518f30039..fb2ca371ed 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -345,7 +345,7 @@ rb_vm_env_write(const VALUE *ep, int index, VALUE v)
}
VALUE
-rb_vm_bh_to_procval(rb_execution_context_t *ec, VALUE block_handler)
+rb_vm_bh_to_procval(const rb_execution_context_t *ec, VALUE block_handler)
{
if (block_handler == VM_BLOCK_HANDLER_NONE) {
return Qnil;