Fix handling of inexact integer literals.
svn: r13294
This commit is contained in:
parent
9f11b0fd04
commit
2962c0bfa7
|
@ -679,7 +679,8 @@
|
|||
(test-suite
|
||||
"tc-literal tests"
|
||||
(tc-l 5 -Integer)
|
||||
(tc-l 5# -Integer)
|
||||
(tc-l 5# N)
|
||||
(tc-l 5.0 N)
|
||||
(tc-l 5.1 N)
|
||||
(tc-l #t (-val #t))
|
||||
(tc-l "foo" -String)
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
(apply Un (map tc-literal es)))
|
||||
(define v (syntax-e v-stx))
|
||||
(cond
|
||||
[(integer? v) -Integer]
|
||||
[(exact-integer? v) -Integer]
|
||||
[(number? v) N]
|
||||
[(char? v) -Char]
|
||||
[(boolean? v) (-val v)]
|
||||
|
|
Loading…
Reference in New Issue
Block a user