Switched indexing to integers in the typechecker's special cases for

heterogenous vectors and unsafe struct operations.
This commit is contained in:
Vincent St-Amour 2010-06-22 13:23:44 -04:00
parent 7d1040283e
commit 3c9e7e34db

View File

@ -472,7 +472,7 @@
[(tc-result1: (Value: (? number? i))) i]
[_ #f]))])
(cond [(not ival)
(check-below e-t -Nat)
(check-below e-t -Integer)
(if expected
(check-below (ret (apply Un flds)) expected)
(ret (apply Un flds)))]
@ -529,7 +529,7 @@
[(tc-result1: (Value: (? number? i))) i]
[_ #f]))])
(cond [(not ival)
(check-below e-t -Nat)
(check-below e-t -Integer)
(if expected
(check-below (ret (apply Un es)) expected)
(ret (apply Un es)))]