aboutsummaryrefslogtreecommitdiff
path: root/src/boot/me
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-07-04 16:42:58 -0700
committerGraydon Hoare <[email protected]>2010-07-04 16:42:58 -0700
commit1833fa1df24eb546d7bd9d7eb37a579b34779238 (patch)
tree94ca25ec88ac36e341120eaf8075c382a75bccb8 /src/boot/me
parentImprove type.ml logging. (diff)
downloadrust-1833fa1df24eb546d7bd9d7eb37a579b34779238.tar.xz
rust-1833fa1df24eb546d7bd9d7eb37a579b34779238.zip
Fix generic-derived-type.rs and generic-obj-with-derived-type.rs.
Diffstat (limited to 'src/boot/me')
-rw-r--r--src/boot/me/type.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/boot/me/type.ml b/src/boot/me/type.ml
index ff1bbd72..b27e68dc 100644
--- a/src/boot/me/type.ml
+++ b/src/boot/me/type.ml
@@ -1068,7 +1068,7 @@ let process_crate (cx:ctxt) (crate:Ast.crate) : unit =
TYSPEC_dictionary names
| Ast.COMP_named (Ast.COMP_idx i) ->
- let init j = if i + 1 == j then tv else ref TYSPEC_all in
+ let init j = if i = j then tv else ref TYSPEC_all in
TYSPEC_tuple (Array.init (i + 1) init)
| Ast.COMP_atom atom ->