Fix handling of inexact integer literals.

svn: r13294

original commit: 2962c0bfa7f13a16406248abf891c574fe08b006
This commit is contained in:
Sam Tobin-Hochstadt 2009-01-27 17:55:10 +00:00
parent 86e0c521fc
commit 5570ebc151
2 changed files with 3 additions and 2 deletions

View File

@ -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)

View File

@ -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)]