summaryrefslogtreecommitdiff
path: root/vm_method.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-31 23:06:25 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-31 23:06:25 (GMT)
commit473427a3913d88ae22ccb0a7bd6fbc7abb053dff (patch)
tree35e4c826732d4697ffde886f4639c4e18d9445d5 /vm_method.c
parentc10df9b69839862a9a5aa4c7a4bc32da54a03f12 (diff)
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 2e8c5d7..1fdb845 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