diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-16 18:56:05 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-16 18:56:05 +0000 |
commit | 2795cd7f38b55ce3f2905eb29aef1d80911f9328 (patch) | |
tree | fd11e9bdd437de834661712715b22d1a8476552a | |
parent | f0850956b6c54633fd186adbc25e6a4ccf4b5227 (diff) | |
download | ruby-2795cd7f38b55ce3f2905eb29aef1d80911f9328.tar.gz |
* vm.c (vm_make_env_each): should not compare with Qfalse and FALSE.
Pointed at http://d.hatena.ne.jp/nagachika/20151216/ruby_trunk_changes_53128_53163
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | vm.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Thu Dec 17 03:52:10 2015 Koichi Sasada <ko1@atdot.net> + + * vm.c (vm_make_env_each): should not compare with Qfalse and FALSE. + Pointed at http://d.hatena.ne.jp/nagachika/20151216/ruby_trunk_changes_53128_53163 + Thu Dec 17 03:15:25 2015 Koichi Sasada <ko1@atdot.net> * vm_insnhelper.c (vm_call_method_each_type): should not set fastpath @@ -608,7 +608,7 @@ vm_make_env_each(rb_thread_t *const th, rb_control_frame_t *const cfp) else { rb_block_t *block = VM_EP_BLOCK_PTR(ep); - if (block && (vm_make_proc_from_block(th, block, &blockprocval)) != Qfalse) { + if (block && vm_make_proc_from_block(th, block, &blockprocval)) { rb_proc_t *p; GetProcPtr(blockprocval, p); *ep = VM_ENVVAL_BLOCK_PTR(&p->block); |