summaryrefslogtreecommitdiff
path: root/enum.c
diff options
context:
space:
mode:
Diffstat (limited to 'enum.c')
-rw-r--r--enum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/enum.c b/enum.c
index d9e054e8fd..12e488eac6 100644
--- a/enum.c
+++ b/enum.c
@@ -555,7 +555,7 @@ enum_first(int argc, VALUE *argv, VALUE obj)
rb_scan_args(argc, argv, "01", &n);
- if (NIL_P(n)) {
+ if (argc == 0) {
ary[0] = ary[1] = Qnil;
}
else {