From a58611dfb1bfc74fb1a51a9cd0ca8ac690c2f1f4 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 24 May 2022 16:48:34 +0900 Subject: Allow to just warn as bool expected, without an exception --- dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dir.c') diff --git a/dir.c b/dir.c index a090b9f38c..ee58d9c656 100644 --- a/dir.c +++ b/dir.c @@ -2948,7 +2948,7 @@ dir_glob_option_base(VALUE base) static int dir_glob_option_sort(VALUE sort) { - return (rb_bool_expected(sort, "sort") ? 0 : FNM_GLOB_NOSORT); + return (rb_bool_expected(sort, "sort", TRUE) ? 0 : FNM_GLOB_NOSORT); } static VALUE -- cgit v1.2.1