aboutsummaryrefslogtreecommitdiff
path: root/tactics
diff options
context:
space:
mode:
authorppedrot2012-09-18 16:00:57 +0000
committerppedrot2012-09-18 16:00:57 +0000
commit451ecf7eb4fbd8ffa2058cdb8bb57e0b25a70b59 (patch)
treec206b7a87f334ef189765b5fe0262dd4d8d1d9bc /tactics
parentbf08866eabad4408de975bae92f3b3c1f718322c (diff)
More cleaning in CArray...
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@15819 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'tactics')
-rw-r--r--tactics/rewrite.ml42
-rw-r--r--tactics/tactics.ml2
2 files changed, 2 insertions, 2 deletions
diff --git a/tactics/rewrite.ml4 b/tactics/rewrite.ml4
index fe869c340f..db2abea350 100644
--- a/tactics/rewrite.ml4
+++ b/tactics/rewrite.ml4
@@ -581,7 +581,7 @@ let resolve_subrelation env avoid car rel prf rel' res =
let resolve_morphism env avoid oldt m ?(fnewt=fun x -> x) args args' cstr evars =
let evars, morph_instance, proj, sigargs, m', args, args' =
- let first = match (Array.find_i (fun _ b -> b <> None) args') with
+ let first = match (Array.findi (fun _ b -> b <> None) args') with
| Some i -> i
| None -> raise (Invalid_argument "resolve_morphism") in
let morphargs, morphobjs = Array.chop first args in
diff --git a/tactics/tactics.ml b/tactics/tactics.ml
index bdf2ea96d3..a29ab24bac 100644
--- a/tactics/tactics.ml
+++ b/tactics/tactics.ml
@@ -2461,7 +2461,7 @@ let abstract_args gl generalize_vars dep id defined f args =
let parvars = ids_of_constr ~all:true Idset.empty f' in
if not (linear parvars args') then true, f, args
else
- match Array.find_i (fun i x -> not (isVar x) || is_defined_variable env (destVar x)) args' with
+ match Array.findi (fun i x -> not (isVar x) || is_defined_variable env (destVar x)) args' with
| None -> false, f', args'
| Some nonvar ->
let before, after = Array.chop nonvar args' in