aboutsummaryrefslogtreecommitdiff
path: root/tactics
diff options
context:
space:
mode:
authorletouzey2005-08-19 19:51:02 +0000
committerletouzey2005-08-19 19:51:02 +0000
commitbe6ee173206a929ad664ff507334ad5add7ad157 (patch)
treebfc3228af152a38598bc09798c5602d5e5953148 /tactics
parent66a2d880e14c1635f29cef0ad0113185cba29a18 (diff)
Sur le conseil de X.Leroy: x=[||] devient Array.length x=0
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@7305 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'tactics')
-rw-r--r--tactics/setoid_replace.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/tactics/setoid_replace.ml b/tactics/setoid_replace.ml
index 7a3e39e94b..3db8be9dcb 100644
--- a/tactics/setoid_replace.ml
+++ b/tactics/setoid_replace.ml
@@ -633,7 +633,7 @@ let apply_to_rels c l =
applistc c (Util.list_map_i (fun i _ -> mkRel (len - i)) 0 l)
let apply_to_relation subst rel =
- if subst = [||] then rel
+ if Array.length subst = 0 then rel
else
let new_quantifiers_no = rel.rel_quantifiers_no - Array.length subst in
assert (new_quantifiers_no >= 0) ;