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 --- process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'process.c') diff --git a/process.c b/process.c index 9568399f93..53727ab116 100644 --- a/process.c +++ b/process.c @@ -2210,7 +2210,7 @@ rb_execarg_addopt_rlimit(struct rb_execarg *eargp, int rtype, VALUE val) } #endif -#define TO_BOOL(val, name) NIL_P(val) ? 0 : rb_bool_expected((val), name) +#define TO_BOOL(val, name) (NIL_P(val) ? 0 : rb_bool_expected((val), name, TRUE)) int rb_execarg_addopt(VALUE execarg_obj, VALUE key, VALUE val) { -- cgit v1.2.1