aboutsummaryrefslogtreecommitdiffstats
path: root/vm_method.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-31 23:06:25 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-31 23:06:25 +0000
commit6a15306f7f8984fb82de08b90bd787e4a73dced7 (patch)
tree35e4c826732d4697ffde886f4639c4e18d9445d5 /vm_method.c
parentcc0cf0ca4023e29dffde05d8b23f20b2a643c400 (diff)
downloadruby-6a15306f7f8984fb82de08b90bd787e4a73dced7.tar.gz
vm_method.c: suppress warning
* vm_method.c (rb_frame_visibility_check): suppress comparison warning by gcc 4.8 and 4.9. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_method.c b/vm_method.c
index 2e8c5d721b..1fdb84524e 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -917,7 +917,7 @@ rb_frame_visibility_test(rb_method_flag_t flag)
static int
rb_frame_visibility_check(rb_method_flag_t flag)
{
- return CREF_VISI(rb_vm_cref()) == flag;
+ return CREF_VISI(rb_vm_cref()) == (long)flag;
}
void