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:
0bafe73
)
(real_eqv): Pretend that all NaNs are equal.
author
Marius Vollmer
<mvo@zagadka.de>
Wed, 8 Sep 2004 14:32:47 +0000
(14:32 +0000)
committer
Marius Vollmer
<mvo@zagadka.de>
Wed, 8 Sep 2004 14:32:47 +0000
(14:32 +0000)
libguile/eq.c
patch
|
blob
|
blame
|
history
diff --git
a/libguile/eq.c
b/libguile/eq.c
index
e7d4b0c
..
a067c50
100644
(file)
--- a/
libguile/eq.c
+++ b/
libguile/eq.c
@@
-58,7
+58,7
@@
SCM_DEFINE1 (scm_eq_p, "eq?", scm_tc7_rpsubr,
static int
real_eqv (double x, double y)
{
- return !memcmp (&x, &y, sizeof(double));
+ return !memcmp (&x, &y, sizeof(double))
|| (x != x && y != y)
;
}
#include <stdio.h>