diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-29 15:25:32 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-29 15:25:32 +0000 |
commit | 6d5636cdac33359b732c13e8a2a5c086f1006e72 (patch) | |
tree | b57c99c0ab6dcc32c541b0a5228b775c9462f656 /vm_insnhelper.c | |
parent | c7c173a6185f8fe3c9cf5116a2362af95247a5f7 (diff) | |
download | ruby-6d5636cdac33359b732c13e8a2a5c086f1006e72.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.c | 2 |
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; |