summaryrefslogtreecommitdiff
path: root/complex.c
diff options
context:
space:
mode:
authorS.H <gamelinks007@gmail.com>2021-09-15 08:11:05 +0900
committerGitHub <noreply@github.com>2021-09-15 08:11:05 +0900
commitb8c3a84bddac7366c4e391234b2535253869e885 (patch)
tree872dfa2014b75fc4c5dadb060900afa118cded71 /complex.c
parent89242279e61b023a81c58065c62a82de8829d0b3 (diff)
downloadruby-b8c3a84bddac7366c4e391234b2535253869e885.tar.gz
Refactor and Using RBOOL macro
Diffstat (limited to 'complex.c')
-rw-r--r--complex.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/complex.c b/complex.c
index ec77aeb588..ea3c137461 100644
--- a/complex.c
+++ b/complex.c
@@ -1451,10 +1451,7 @@ rb_complex_finite_p(VALUE self)
{
get_dat1(self);
- if (f_finite_p(dat->real) && f_finite_p(dat->imag)) {
- return Qtrue;
- }
- return Qfalse;
+ return RBOOL(f_finite_p(dat->real) && f_finite_p(dat->imag));
}
/*