aboutsummaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorherbelin2002-09-29 15:30:08 +0000
committerherbelin2002-09-29 15:30:08 +0000
commit7dd90085235375264f94d12d1bd73e03c9637590 (patch)
treecc63fdcda30cc1eb504c6ac064b7a6fdaa3535d1 /kernel
parentcaa93dd02540162150a7d048e36ca1c1dc9cb0d4 (diff)
Réparation hash_consing
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@3047 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'kernel')
-rw-r--r--kernel/term.ml5
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/term.ml b/kernel/term.ml
index da8c3062af..cc6404631b 100644
--- a/kernel/term.ml
+++ b/kernel/term.ml
@@ -131,8 +131,9 @@ let comp_term t1 t2 =
| App (c1,l1), App (c2,l2) -> c1 == c2 & array_for_all2 (==) l1 l2
| Evar (e1,l1), Evar (e2,l2) -> e1 = e2 & array_for_all2 (==) l1 l2
| Const c1, Const c2 -> c1 == c2
- | Ind c1, Ind c2 -> c1 == c2
- | Construct c1, Construct c2 -> c1 == c2
+ | Ind (sp1,i1), Ind (sp2,i2) -> sp1 == sp2 & i1 = i2
+ | Construct ((sp1,i1),j1), Construct ((sp2,i2),j2) ->
+ sp1 == sp2 & i1 = i2 & j1 = j2
| Case (ci1,p1,c1,bl1), Case (ci2,p2,c2,bl2) ->
ci1 == ci2 & p1 == p2 & c1 == c2 & array_for_all2 (==) bl1 bl2
| Fix (ln1,(lna1,tl1,bl1)), Fix (ln2,(lna2,tl2,bl2)) ->