mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-24 06:20:43 -08:00
Fix union of homogeneously negated input constraints
* lisp/emacs-lisp/comp-cstr.el (comp-cstr-union-1): Fix logic. * test/lisp/emacs-lisp/comp-cstr-tests.el (comp-cstr-typespec-tests-alist): Add a couple of tests.
This commit is contained in:
parent
cbbdb4e199
commit
726e40fb7c
2 changed files with 5 additions and 1 deletions
|
|
@ -325,6 +325,8 @@ DST is returned."
|
|||
finally
|
||||
(when (or (zerop n-pos) (zerop n-neg))
|
||||
(apply #'comp-cstr-union-homogeneous dst srcs)
|
||||
(when (zerop n-pos)
|
||||
(setf (neg dst) t))
|
||||
(cl-return-from comp-cstr-union-1 dst)))
|
||||
|
||||
;; Some are negated and some are not
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue