aboutsummaryrefslogtreecommitdiffstats
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index 1b8560583b..6670e89ea5 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -2468,7 +2468,7 @@ vm_defined(rb_thread_t *th, rb_control_frame_t *reg_cfp, rb_num_t op_type, VALUE
if (me) {
const rb_method_definition_t *def = me->def;
- switch ((unsigned int)def->flags.visi) {
+ switch (def->flags.visi) {
case METHOD_VISI_PRIVATE:
break;
case METHOD_VISI_PROTECTED: