diff options
author | S.H <gamelinks007@gmail.com> | 2021-11-09 17:09:29 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-09 17:09:29 +0900 |
commit | 75aae66c4f3eacd527cea71e0c8e486b630fc0a4 (patch) | |
tree | 8aee73fc1b63d6bdfa4761852fd7da8bcac416e1 /error.c | |
parent | c1c13c58eebb7441d27536a32d73380d165d6eda (diff) |
Some codes replace to `RBOOL` macro (#5023)
* Some code replace and using RBOOL macro
* Fix indent
* Using RBOOL in syserr_eqq function
Notes
Notes:
Merged-By: nobu <nobu@ruby-lang.org>
Diffstat (limited to 'error.c')
-rw-r--r-- | error.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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)); } |