summaryrefslogtreecommitdiff
path: root/class.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-06 01:37:50 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-06 01:37:50 (GMT)
commit32a586d7381a2cd23913a787340927ec189417d1 (patch)
tree9bbf2d289c91cc38494fe0f5c71ff560c154987d /class.c
parent5d983e4fb2d2ede5122941e094cbe2b7d4270b6b (diff)
class.c: suppress a warning
* class.c (ins_methods_push): suppress a signed and unsigned comparison warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'class.c')
-rw-r--r--class.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/class.c b/class.c
index 973aa55..3ac2d81 100644
--- a/class.c
+++ b/class.c
@@ -1075,7 +1075,7 @@ ins_methods_push(ID name, long type, VALUE ary, rb_method_visibility_t visi)
case METHOD_VISI_PRIVATE:
case METHOD_VISI_PROTECTED:
case METHOD_VISI_PUBLIC:
- visi = (type == visi);
+ visi = (type == (long)visi);
break;
default:
visi = (type != METHOD_VISI_PRIVATE);