HCoop
/
bpt
/
guile.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64b4cbe
)
(scm_real_part): Return fraction unchanged rather than converting to flonum.
author
Kevin Ryde
<user42@zip.com.au>
Tue, 2 Dec 2003 21:27:13 +0000
(21:27 +0000)
committer
Kevin Ryde
<user42@zip.com.au>
Tue, 2 Dec 2003 21:27:13 +0000
(21:27 +0000)
libguile/numbers.c
patch
|
blob
|
blame
|
history
diff --git
a/libguile/numbers.c
b/libguile/numbers.c
index
31bd94c
..
c3c4e3c
100644
(file)
--- a/
libguile/numbers.c
+++ b/
libguile/numbers.c
@@
-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);
}