diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-05-24 16:48:34 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-06-20 19:35:12 +0900 |
commit | a58611dfb1bfc74fb1a51a9cd0ca8ac690c2f1f4 (patch) | |
tree | c168f6a4b56c0b159a573639fffcead139a28e28 /dir.c | |
parent | 15db2e9496703d76b2d785a9e2a1554833706e06 (diff) |
Allow to just warn as bool expected, without an exception
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6039
Diffstat (limited to 'dir.c')
-rw-r--r-- | dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |