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

heterogenous vectors and unsafe struct operations.

original commit: 3c9e7e34db69a6112f8aa87c4e5c3edcd550b4ab
This commit is contained in:
Vincent St-Amour 2010-06-22 13:23:44 -04:00
parent 1d48090ecb
commit 93728d1ebd

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