summaryrefslogtreecommitdiff
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 6da2f547c5..b11ffa693c 100644
--- a/proc.c
+++ b/proc.c
@@ -1642,7 +1642,7 @@ rb_mod_define_method(int argc, VALUE *argv, VALUE mod)
const NODE *cref = rb_vm_cref_in_context(mod, mod);
if (cref) {
- noex = (int)cref->nd_visi;
+ noex = CREF_VISI(cref);
}
if (argc == 1) {