Skip to content

Commit 2224217

Browse files
committed
Add fix from nikodemus#15
1 parent 7f15272 commit 2224217

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

screamer.lisp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4296,11 +4296,11 @@ Otherwise returns the value of X."
42964296
(defun +-rule-down (z x y)
42974297
;; note: We can't assert that X and Y are integers when Z is an integer since
42984298
;; Z may be an integer when X and Y are Gaussian integers. But we can
4299-
;; make such an assertion if either X or Y is real. If the Screamer
4299+
;; make such an assertion if either X or Y is an integer. If the Screamer
43004300
;; type system could distinguish Gaussian integers from other complex
43014301
;; numbers we could make such an assertion whenever either X or Y was
43024302
;; not a Gaussian integer.
4303-
(if (and (variable-integer? z) (or (variable-real? x) (variable-real? y)))
4303+
(if (and (variable-integer? z) (or (variable-integer? x) (variable-integer? y)))
43044304
(restrict-integer! x))
43054305
;; note: Ditto.
43064306
(if (and (variable-real? z) (or (variable-real? x) (variable-real? y)))
@@ -4427,11 +4427,11 @@ Otherwise returns the value of X."
44274427
(defun *-rule-down (z x y)
44284428
;; note: We can't assert that X and Y are integers when Z is an integer since
44294429
;; Z may be an integer when X and Y are Gaussian integers. But we can
4430-
;; make such an assertion if either X or Y is real. If the Screamer
4430+
;; make such an assertion if either X or Y is an integer. If the Screamer
44314431
;; type system could distinguish Gaussian integers from other complex
44324432
;; numbers we could make such an assertion whenever either X or Y was
44334433
;; not a Gaussian integer.
4434-
(if (and (variable-integer? z) (or (variable-real? x) (variable-real? y)))
4434+
(if (and (variable-integer? z) (or (variable-integer? x) (variable-integer? y)))
44354435
(restrict-integer! x))
44364436
;; note: Ditto.
44374437
(if (and (variable-real? z) (or (variable-real? x) (variable-real? y)))

0 commit comments

Comments
 (0)