More precise type for sgn. Closes PR 11424.

This commit is contained in:
Vincent St-Amour 2010-11-22 17:16:36 -05:00
parent 698b3a6c90
commit 2c74984fcd

View File

@ -434,7 +434,14 @@
;; scheme/math
[sgn (-Real . -> . -Real)]
[sgn (cl->* (-Zero . -> . -Zero)
(-ExactPositiveInteger . -> . -PositiveFixnum)
(-ExactNonnegativeInteger . -> . -NonnegativeFixnum)
(-ExactRational . -> . -Fixnum)
(-Flonum . -> . -Flonum)
(-InexactReal . -> . -InexactReal)
(-Real . -> . -Real))]
[pi -NonnegativeFlonum]
[sqr (cl->* (-> -Pos -Pos)
(-> -Integer -Nat)