summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
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 *