summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/comp-cstr.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/emacs-lisp/comp-cstr.el')
-rw-r--r--lisp/emacs-lisp/comp-cstr.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/comp-cstr.el b/lisp/emacs-lisp/comp-cstr.el
index 6a8ec5213d5..d6423efa0d6 100644
--- a/lisp/emacs-lisp/comp-cstr.el
+++ b/lisp/emacs-lisp/comp-cstr.el
@@ -664,7 +664,7 @@ DST is returned."
(cl-return-from comp-cstr-intersection-homogeneous dst))
(setf (neg dst) (when srcs
- (neg (car srcs))))
+ (neg (car srcs))))
;; Type propagation.
(setf (typeset dst)
@@ -682,7 +682,7 @@ DST is returned."
;; If (member value) is subtypep of all other sources then
;; is good to be colleted.
when (cl-every (lambda (s)
- (or (memq val (valset s))
+ (or (memql val (valset s))
(cl-some (lambda (type)
(cl-typep val type))
(typeset s))))
@@ -890,6 +890,10 @@ Non memoized version of `comp-cstr-intersection-no-mem'."
(cl-return cstr)
finally (setf (valset cstr)
(append vals-to-add (valset cstr))))
+ (when (memql 0.0 (valset cstr))
+ (cl-pushnew -0.0 (valset cstr)))
+ (when (memql -0.0 (valset cstr))
+ (cl-pushnew 0.0 (valset cstr)))
cstr))
(comp-cstr-intersection dst (relax-cstr op1) (relax-cstr op2)))))