aboutsummaryrefslogtreecommitdiff
path: root/parsing/g_constr.ml4
diff options
context:
space:
mode:
authorletouzey2007-07-11 21:48:04 +0000
committerletouzey2007-07-11 21:48:04 +0000
commit5f2b3fd5c17c29ffc734eef05bdb22b44d015edf (patch)
tree9b03e7a9800355412e364e0528c5214b622d4888 /parsing/g_constr.ml4
parent2ed747a81ed14d91112b9b3360c6e5ab4ff897eb (diff)
Slight cleanup of refl_omega.ml : in particular it uses now list
utilities from Util. Some additions in Util, and simplifications in various files. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@9969 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'parsing/g_constr.ml4')
-rw-r--r--parsing/g_constr.ml42
1 files changed, 1 insertions, 1 deletions
diff --git a/parsing/g_constr.ml4 b/parsing/g_constr.ml4
index 11c9ff48a1..ecb2e132a8 100644
--- a/parsing/g_constr.ml4
+++ b/parsing/g_constr.ml4
@@ -44,7 +44,7 @@ let rec index_and_rec_order_of_annot loc bl ann =
| [_], (None, r) -> Some 0, r
| lids, (Some x, ro) ->
let ids = List.map snd lids in
- (try Some (list_index (snd x) ids - 1), ro
+ (try Some (list_index0 (snd x) ids), ro
with Not_found ->
user_err_loc(fst x,"index_of_annot", Pp.str"no such fix variable"))
| _, (None, r) -> None, r