* scm_less_p frac/big isnan
@ 2003-11-21 20:57 Kevin Ryde
0 siblings, 0 replies; only message in thread
From: Kevin Ryde @ 2003-11-21 20:57 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 231 bytes --]
A leftover from cutting and pasting I think,
* numbers.c (scm_less_p): Remove spurious xisnan from frac+big case.
Doesn't have an obvious ill effect I could spot, I guess it depends on
the bits that happen to be in "x".
[-- Attachment #2: numbers.c.less-frac-big.diff --]
[-- Type: text/plain, Size: 374 bytes --]
--- numbers.c.~1.215.~ 1970-01-01 10:00:01.000000000 +1000
+++ numbers.c 2003-11-21 16:54:00.000000000 +1000
@@ -3154,8 +3154,6 @@
else if (SCM_BIGP (y))
{
int cmp;
- if (xisnan (SCM_REAL_VALUE (x)))
- return SCM_BOOL_F;
cmp = xmpz_cmp_d (SCM_I_BIG_MPZ (y), scm_i_fraction2double (x));
scm_remember_upto_here_1 (y);
return SCM_BOOL (cmp > 0);
[-- Attachment #3: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-11-21 20:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-21 20:57 scm_less_p frac/big isnan Kevin Ryde
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).