]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/comp-cstr.el (comp-cstr-set-cmp-range): Improve.
authorAndrea Corallo <akrl@sdf.org>
Sun, 27 Dec 2020 14:51:57 +0000 (15:51 +0100)
committerAndrea Corallo <akrl@sdf.org>
Sun, 27 Dec 2020 20:33:42 +0000 (21:33 +0100)
lisp/emacs-lisp/comp-cstr.el

index 62e3c47ce3a2800cf15999397028c5e4d1e55462..d41501e680448df881210d15761c23fcceee2298 100644 (file)
@@ -374,7 +374,10 @@ Return them as multiple value."
   "Support range comparison functions."
   (with-comp-cstr-accessors
     (if ext-range
-        (setf (typeset dst) (and (typeset old-dst) '(float))
+        (setf (typeset dst) (when (cl-some (lambda (x)
+                                             (comp-subtype-p 'float x))
+                                           (typeset old-dst))
+                                '(float))
               (valset dst) ()
               (range dst) (if (range old-dst)
                               (comp-range-intersection (range old-dst)