Skip to content

Commit 1f179e4

Browse files
committed
Repair types for quotient/remainder.
Should fix the lambda-sh package. cc @capfredf @wargray
1 parent c3d245b commit 1f179e4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

typed-racket-lib/typed-racket/base-env/base-env-numeric.rkt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@
683683
(-Real . -> . -NonNegReal)))
684684

685685

686-
(define (quotient-reminder-cases . cases)
686+
(define (quotient-remainder-cases . cases)
687687
(for/lists (qs rs qrs)
688688
([i (in-list cases)])
689689
(match-define (list a b (list c d)) i)
@@ -692,7 +692,7 @@
692692
(-> a b (-values (list c d))))))
693693

694694
(define-values (quotient-spec remainder-spec quotient/remainder-spec)
695-
(quotient-reminder-cases
695+
(quotient-remainder-cases
696696
(list -Zero -Int (list -Zero -Zero))
697697
(list -One -One (list -One -Zero))
698698
;; division by one is identity, and has no remainder
@@ -707,6 +707,7 @@
707707
(list -Fixnum -One (list -Fixnum -Zero))
708708
(list -Byte -Nat (list -Byte -Byte))
709709
(list -Byte -Int (list -Fixnum -Byte))
710+
(list -Index -Byte (list -Index -Byte))
710711
(list -Index -Nat (list -Index -Index))
711712
(list -Index -Int (list -Fixnum -Index))
712713
(list -NonNegFixnum -Byte (list -NonNegFixnum -Byte))

0 commit comments

Comments
 (0)