summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authorS.H <gamelinks007@gmail.com>2021-11-09 17:09:29 +0900
committerGitHub <noreply@github.com>2021-11-09 17:09:29 +0900
commit75aae66c4f3eacd527cea71e0c8e486b630fc0a4 (patch)
tree8aee73fc1b63d6bdfa4761852fd7da8bcac416e1 /error.c
parentc1c13c58eebb7441d27536a32d73380d165d6eda (diff)
downloadruby-75aae66c4f3eacd527cea71e0c8e486b630fc0a4.tar.gz
Some codes replace to `RBOOL` macro (#5023)
* Some code replace and using RBOOL macro * Fix indent * Using RBOOL in syserr_eqq function
Diffstat (limited to 'error.c')
-rw-r--r--error.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/error.c b/error.c
index f9433ebe50..926ec5adb9 100644
--- a/error.c
+++ b/error.c
@@ -2421,9 +2421,7 @@ syserr_eqq(VALUE self, VALUE exc)
num = rb_funcallv(exc, id_errno, 0, 0);
}
e = rb_const_get(self, id_Errno);
- if (FIXNUM_P(num) ? num == e : rb_equal(num, e))
- return Qtrue;
- return Qfalse;
+ return RBOOL(FIXNUM_P(num) ? num == e : rb_equal(num, e));
}