From bb4982b896c7b96eef2f18ceab3d0b8e294e44d0 Mon Sep 17 00:00:00 2001 From: puech Date: Fri, 29 Jul 2011 14:26:01 +0000 Subject: Heads: generic equality on constr replaced by destructor git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@14331 85f007b7-540e-0410-9357-904b9bb8a0f7 --- library/heads.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'library/heads.ml') diff --git a/library/heads.ml b/library/heads.ml index 363443bbb..8fda452c1 100644 --- a/library/heads.ml +++ b/library/heads.ml @@ -146,7 +146,7 @@ let cache_head o = let subst_head_approximation subst = function | RigidHead (RigidParameter cst) as k -> let cst,c = subst_con subst cst in - if c = mkConst cst then + if isConst c && eq_constant (destConst c) cst then (* A change of the prefix of the constant *) k else -- cgit v1.2.3