summaryrefslogtreecommitdiffstats
path: root/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dir.c b/dir.c
index 90b23c67c..144d903e1 100644
--- a/dir.c
+++ b/dir.c
@@ -1630,7 +1630,7 @@ dir_s_glob(int argc, VALUE *argv, VALUE obj)
}
else {
volatile VALUE v = ary;
- ary = dir_globs(RARRAY(ary)->len, RARRAY(ary)->ptr, flags);
+ ary = dir_globs(RARRAY_LEN(ary), RARRAY_PTR(ary), flags);
}
if (rb_block_given_p()) {