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:
parent
64b4cbe4f3
commit
2fa2d87937
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue