Skip to content

Commit ffa0284

Browse files
authored
Revert or-in-for/and-to-filter-clause resyntax rule application
1 parent 4c8bf08 commit ffa0284

File tree

1 file changed

+3
-3
lines changed
  • typed-racket-lib/typed-racket/optimizer

1 file changed

+3
-3
lines changed

typed-racket-lib/typed-racket/optimizer/float.rkt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,10 @@
142142
;; (Note: could allow for more args, if not next to each other, but
143143
;; probably not worth the trouble (most ops have 2 args anyway))
144144
(and (subtypeof? this-syntax -Flonum)
145-
(for/and ([a (in-syntax #'(fs ...))]
146-
#:unless (subtypeof? a -Flonum))
145+
(for/and ([a (in-syntax #'(fs ...))])
147146
;; flonum or provably non-zero
148-
(subtypeof? a (Un -PosReal -NegReal)))
147+
(or (subtypeof? a -Flonum)
148+
(subtypeof? a (Un -PosReal -NegReal))))
149149
(>= 1
150150
(for/sum ([a (in-syntax #'(fs ...))]
151151
#:when (not (subtypeof? a -Flonum)))

0 commit comments

Comments
 (0)