diff options
author | S.H <gamelinks007@gmail.com> | 2021-09-15 08:11:05 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-15 08:11:05 +0900 |
commit | b8c3a84bddac7366c4e391234b2535253869e885 (patch) | |
tree | 872dfa2014b75fc4c5dadb060900afa118cded71 /complex.c | |
parent | 89242279e61b023a81c58065c62a82de8829d0b3 (diff) | |
download | ruby-b8c3a84bddac7366c4e391234b2535253869e885.tar.gz |
Refactor and Using RBOOL macro
Diffstat (limited to 'complex.c')
-rw-r--r-- | complex.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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)); } /* |