Skip to content

Commit

Permalink
0.7.12.40:
Browse files Browse the repository at this point in the history
	Fixed a stupid bug in the NOT type translator, revealed by Paul
		Dietz' suite:
	... properly invert the bound: if it's a CONS, take the CAR;
	... now we understand (NOT (RATIONAL (0) (10)) a bit better.
  • Loading branch information
csrhodes committed Feb 17, 2003
1 parent 58ff25d commit 9e82d9f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/code/late-type.lisp
Expand Up @@ -1307,24 +1307,24 @@
(modified-numeric-type
not-type
:low (let ((h (numeric-type-high not-type)))
(if (consp h) h (list h)))
(if (consp h) (car h) (list h)))
:high nil))
((null (numeric-type-high not-type))
(modified-numeric-type
not-type
:low nil
:high (let ((l (numeric-type-low not-type)))
(if (consp l) l (list l)))))
(if (consp l) (car l) (list l)))))
(t (type-union
(modified-numeric-type
not-type
:low nil
:high (let ((l (numeric-type-low not-type)))
(if (consp l) l (list l))))
(if (consp l) (car l) (list l))))
(modified-numeric-type
not-type
:low (let ((h (numeric-type-high not-type)))
(if (consp h) h (list h)))
(if (consp h) (car h) (list h)))
:high nil))))))
((intersection-type-p not-type)
(apply #'type-union
Expand Down
2 changes: 1 addition & 1 deletion version.lisp-expr
Expand Up @@ -18,4 +18,4 @@
;;; versions, especially for internal versions off the main CVS
;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)

"0.7.12.39"
"0.7.12.40"

0 comments on commit 9e82d9f

Please sign in to comment.