aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1993-01-26 03:05:54 +0000
committerJim Blandy1993-01-26 03:05:54 +0000
commit31ef7f7a892bab02b43b61b5b3a858dcf61cdeb9 (patch)
treea5735d8aa98d3a7c78903a0c492f6998c171befd /src
parentdbc4e1c12940079cad7b24e1654a0badcda8d6fc (diff)
downloademacs-31ef7f7a892bab02b43b61b5b3a858dcf61cdeb9.tar.gz
emacs-31ef7f7a892bab02b43b61b5b3a858dcf61cdeb9.zip
* fns.c (internal_equal): Protect the clause for comparing numbers
of different tpes with a "#ifdef LISP_FLOAT_TYPE".
Diffstat (limited to 'src')
-rw-r--r--src/fns.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fns.c b/src/fns.c
index 9f818e886f2..a67635a249a 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -837,10 +837,12 @@ internal_equal (o1, o2, depth)
837do_cdr: 837do_cdr:
838 QUIT; 838 QUIT;
839 if (EQ (o1, o2)) return Qt; 839 if (EQ (o1, o2)) return Qt;
840#ifdef LISP_FLOAT_TYPE
840 if (NUMBERP (o1) && NUMBERP (o2)) 841 if (NUMBERP (o1) && NUMBERP (o2))
841 { 842 {
842 return (extract_float (o1) == extract_float (o2)) ? Qt : Qnil; 843 return (extract_float (o1) == extract_float (o2)) ? Qt : Qnil;
843 } 844 }
845#endif
844 if (XTYPE (o1) != XTYPE (o2)) return Qnil; 846 if (XTYPE (o1) != XTYPE (o2)) return Qnil;
845 if (XTYPE (o1) == Lisp_Cons) 847 if (XTYPE (o1) == Lisp_Cons)
846 { 848 {