Revert "Fix type of - to not be wrong on negative fixnums."
The math library is relying on the current broken behavior. Revert until we can fix it.
This commit is contained in:
parent
2df436d29c
commit
62a09958d2
|
@ -656,13 +656,6 @@
|
|||
(-> -Zero neg pos)
|
||||
(-> -Zero non-pos non-neg)))
|
||||
|
||||
;; Used because (- min-fixnum) > max-fixnum
|
||||
(define (half-negation-pattern pos neg non-neg non-pos)
|
||||
(list (-> pos neg)
|
||||
(-> non-neg non-pos)
|
||||
(-> -Zero pos neg)
|
||||
(-> -Zero non-neg non-pos)))
|
||||
|
||||
(define abs-cases ; used both for abs and magnitude
|
||||
(list
|
||||
(map unop (list -Zero -One -PosByte -Byte -PosIndex -Index -PosFixnum -NonNegFixnum))
|
||||
|
@ -1188,7 +1181,7 @@
|
|||
|
||||
[- (from-cases
|
||||
(binop -Zero)
|
||||
(half-negation-pattern -PosFixnum -NegFixnum -NonNegFixnum -NonPosFixnum)
|
||||
(negation-pattern -PosFixnum -NegFixnum -NonNegFixnum -NonPosFixnum)
|
||||
(negation-pattern -PosInt -NegInt -Nat -NonPosInt)
|
||||
(negation-pattern -PosRat -NegRat -NonNegRat -NonPosRat)
|
||||
(negation-pattern -PosFlonum -NegFlonum -NonNegFlonum -NonPosFlonum)
|
||||
|
|
|
@ -242,8 +242,7 @@
|
|||
(tc-e (+ 3 4) -PosIndex)
|
||||
(tc-e (- 1) -NegFixnum)
|
||||
(tc-e (- 1073741823) -NegFixnum)
|
||||
(tc-e (- -4) -PosInt)
|
||||
(tc-e (- (ann -5 Nonpositive-Fixnum)) -Nat)
|
||||
(tc-e (- -4) -PosFixnum)
|
||||
(tc-e/t 1152921504606846975 -PosInt)
|
||||
(tc-e/t -1152921504606846975 -NegInt)
|
||||
(tc-e (- 3253463567262345623) -NegInt)
|
||||
|
|
Loading…
Reference in New Issue
Block a user