aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-29 01:51:09 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-29 01:51:09 +0000
commit6a0a7e4a317ece5e16d2a1b1dc17111b8298fd2a (patch)
tree0c3a5e15247ab7e58869b1ae5621de56d7db4361
parent14afb64c99ec39aa8fedbd63c96d0a7742e9a531 (diff)
downloadruby-6a0a7e4a317ece5e16d2a1b1dc17111b8298fd2a.tar.gz
* vm_core.h (VM_LOCAL_P): should return an integer value.
reported at http://d.hatena.ne.jp/nagachika/20160728/ruby_trunk_changes_55764_55770 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--vm_core.h2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 6547ec472e..c615ded0ac 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Fri Jul 29 10:49:52 2016 Koichi Sasada <ko1@atdot.net>
+
+ * vm_core.h (VM_LOCAL_P): should return an integer value.
+ reported at
+ http://d.hatena.ne.jp/nagachika/20160728/ruby_trunk_changes_55764_55770
+
Fri Jul 29 04:23:08 2016 Koichi Sasada <ko1@atdot.net>
* vm_core.h (VM_ENV_LOCAL_P): return truthy (0 or not) value.
diff --git a/vm_core.h b/vm_core.h
index 4da28e5966..be163278f4 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -1039,7 +1039,7 @@ VM_FRAME_TYPE(const rb_control_frame_t *cfp)
static inline int
VM_ENV_LOCAL_P(const VALUE *ep)
{
- return VM_ENV_FLAGS(ep, VM_ENV_FLAG_LOCAL);
+ return VM_ENV_FLAGS(ep, VM_ENV_FLAG_LOCAL) ? 1 : 0;
}
static inline const VALUE *