Don't warn about exact arithmetic for inexact numbers.
This commit is contained in:
parent
93939f45d0
commit
45a3b9f48d
|
@ -160,7 +160,9 @@
|
|||
(filter
|
||||
values
|
||||
(for/list ([subexpr (in-list (syntax->list #'(f1 f2 fs ...)))]
|
||||
#:when (or (in-real-layer? subexpr)
|
||||
#:when (or (and (in-real-layer? subexpr)
|
||||
;; exclude single-flonums
|
||||
(not (subtypeof? subexpr -InexactReal)))
|
||||
(in-rational-layer? subexpr)))
|
||||
(syntax-parse subexpr
|
||||
;; Only warn about subexpressions that actually perform exact arithmetic.
|
||||
|
|
Loading…
Reference in New Issue
Block a user