diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-07-28 19:27:52 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-07-28 19:27:52 +0000 |
commit | 78c1041a8214931924fe7e60feee62f59e0b4866 (patch) | |
tree | 652824c04417506a4acf29674b9d9e6950fd3c37 /vm.c | |
parent | 8b35cf454a2e0cc4f78181515377f22ffc1f7f0d (diff) | |
download | ruby-78c1041a8214931924fe7e60feee62f59e0b4866.tar.gz |
* vm_core.h (VM_ENV_LOCAL_P): return truthy (0 or not) value.
* vm.c (rb_vm_make_proc_lambda): use VM_ENV_ESCAPED_P() macro.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r-- | vm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -865,7 +865,7 @@ rb_vm_make_proc_lambda(rb_thread_t *th, const struct rb_captured_block *captured { VALUE procval; - if (!VM_ENV_FLAGS(captured->ep, VM_ENV_FLAG_ESCAPED)) { + if (!VM_ENV_ESCAPED_P(captured->ep)) { rb_control_frame_t *cfp = VM_CAPTURED_BLOCK_TO_CFP(captured); vm_make_env_object(th, cfp); } |