1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-10 14:00:21 +02:00

(scm_real_part): Return fraction unchanged rather than converting to flonum.

This commit is contained in:
Kevin Ryde 2003-12-02 21:27:13 +00:00
parent 64b4cbe4f3
commit 2fa2d87937

View file

@ -4980,7 +4980,7 @@ scm_real_part (SCM z)
else if (SCM_COMPLEXP (z))
return scm_make_real (SCM_COMPLEX_REAL (z));
else if (SCM_FRACTIONP (z))
return scm_make_real (scm_i_fraction2double (z));
return z;
else
SCM_WTA_DISPATCH_1 (g_real_part, z, SCM_ARG1, s_real_part);
}