aboutsummaryrefslogtreecommitdiffstats
path: root/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proc.c b/proc.c
index 6d153c1b3e..789995affd 100644
--- a/proc.c
+++ b/proc.c
@@ -1272,7 +1272,7 @@ mnew_internal(const rb_method_entry_t *me, VALUE klass,
return mnew_missing(klass, obj, id, rid, mclass);
}
if (!error) return Qnil;
- rb_print_undef(klass, id, 0);
+ rb_print_undef(klass, id, METHOD_VISI_UNDEF);
}
if (visi == METHOD_VISI_UNDEF) {
visi = METHOD_ENTRY_VISI(me);