aboutsummaryrefslogtreecommitdiffstats
path: root/class.c
diff options
context:
space:
mode:
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 973aa5520e..3ac2d81de1 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);