Don't warn about exact arithmetic for inexact numbers.
original commit: 45a3b9f48de31075fe8f83e60a7f47fe5db78aaa
This commit is contained in:
parent
21e2041a79
commit
2553e36d24
|
@ -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