ruby-changes:41091
From: ko1 <ko1@a...>
Date: Thu, 17 Dec 2015 03:56:19 +0900 (JST)
Subject: [ruby-changes:41091] ko1:r53166 (trunk): * vm.c (vm_make_env_each): should not compare with Qfalse and FALSE.
ko1 2015-12-17 03:56:05 +0900 (Thu, 17 Dec 2015) New Revision: 53166 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53166 Log: * 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 Modified files: trunk/ChangeLog trunk/vm.c Index: ChangeLog =================================================================== --- ChangeLog (revision 53165) +++ ChangeLog (revision 53166) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu Dec 17 03:52:10 2015 Koichi Sasada <ko1@a...> + + * 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@a...> * vm_insnhelper.c (vm_call_method_each_type): should not set fastpath Index: vm.c =================================================================== --- vm.c (revision 53165) +++ vm.c (revision 53166) @@ -608,7 +608,7 @@ vm_make_env_each(rb_thread_t *const th, https://github.com/ruby/ruby/blob/trunk/vm.c#L608 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); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/