summaryrefslogtreecommitdiff
path: root/vm_core.h
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
commit7a1d1163ad9a4e1481d340668582072d077adcc6 (patch)
tree0c3a5e15247ab7e58869b1ae5621de56d7db4361 /vm_core.h
parent78c1041a8214931924fe7e60feee62f59e0b4866 (diff)
* 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
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h2
1 files changed, 1 insertions, 1 deletions
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 *