summaryrefslogtreecommitdiff
path: root/complex.c
diff options
context:
space:
mode:
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));
}
/*