From 7a1d1163ad9a4e1481d340668582072d077adcc6 Mon Sep 17 00:00:00 2001 From: ko1 Date: Fri, 29 Jul 2016 01:51:09 +0000 Subject: * 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 --- vm_core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm_core.h') 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 * -- cgit v1.2.1