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:
bae3066
)
(trunc): Remove #define to scm_truncate when the C library
author
Kevin Ryde
<user42@zip.com.au>
Tue, 18 May 2004 23:45:34 +0000
(23:45 +0000)
committer
Kevin Ryde
<user42@zip.com.au>
Tue, 18 May 2004 23:45:34 +0000
(23:45 +0000)
doesn't provide trunc. This was for when `truncate' was done as a
scm_tc7_dsubr, no longer required.
libguile/numbers.c
patch
|
blob
|
blame
|
history
diff --git
a/libguile/numbers.c
b/libguile/numbers.c
index
1c64fb7
..
6187fef
100644
(file)
--- a/
libguile/numbers.c
+++ b/
libguile/numbers.c
@@
-4937,7
+4937,6
@@
scm_truncate (double x)
#if HAVE_TRUNC
return trunc (x);
#else
-#define trunc scm_truncate
if (x < 0.0)
return -floor (-x);
return floor (x);