aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--vm.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index bef6a757a6..244670f058 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/vm.c b/vm.c
index a03e068780..3c80cd16aa 100644
--- a/vm.c
+++ b/vm.c
@@ -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);