Skip to content

Commit 91f5d90

Browse files
Fix 1 occurrence of zero-comparison-to-negative?
This expression is equivalent to calling the `negative?` predicate.
1 parent 2bf9a68 commit 91f5d90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typed-racket-lib/typed-racket/typecheck/tc-app/tc-app-hetero.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
(cond
5252
[(not (and (integer? i-val) (exact? i-val)))
5353
(tc-error/expr #:stx expr "expected exact integer for ~a index, but got ~a" name i-val)]
54-
[(< i-val 0)
54+
[(negative? i-val)
5555
(tc-error/expr #:stx expr "index ~a too small for ~a ~a" i-val name type)]
5656
[(not (< i-val i-bound))
5757
(tc-error/expr #:stx expr "index ~a too large for ~a ~a" i-val name type)]))

0 commit comments

Comments
 (0)