aboutsummaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/closure.ml6
-rw-r--r--kernel/inductive.ml2
2 files changed, 3 insertions, 5 deletions
diff --git a/kernel/closure.ml b/kernel/closure.ml
index c3b828a39d..1e7dadb04e 100644
--- a/kernel/closure.ml
+++ b/kernel/closure.ml
@@ -474,9 +474,7 @@ let rec stack_tail p s =
| Zapp args :: s ->
let q = List.length args in
if p >= q then stack_tail (p-q) s
- else
- let (_,aft) = list_chop p args in
- Zapp aft :: s
+ else Zapp (list_skipn p args) :: s
| _ -> failwith "stack_tail"
let rec stack_nth s p = match s with
| Zapp args :: s ->
@@ -823,7 +821,7 @@ let rec drop_parameters depth n stk =
if n > q then drop_parameters depth (n-q) s
else if n = q then reloc_rargs depth s
else
- let (_,aft) = list_chop n args in
+ let aft = list_skipn n args in
reloc_rargs depth (append_stack_list (aft,s))
| Zshift(k)::s -> drop_parameters (depth-k) n s
| [] -> assert (n=0); []
diff --git a/kernel/inductive.ml b/kernel/inductive.ml
index e8795982f9..13dd9c5506 100644
--- a/kernel/inductive.ml
+++ b/kernel/inductive.ml
@@ -763,7 +763,7 @@ let check_one_cofix env nbfix def deftype =
let lra =vlra.(i-1) in
let mI = inductive_of_constructor cstr_kn in
let (mib,mip) = lookup_mind_specif env mI in
- let _,realargs = list_chop mip.mind_nparams args in
+ let realargs = list_skipn mip.mind_nparams args in
let rec process_args_of_constr = function
| (t::lr), (rar::lrar) ->
if rar = mk_norec then