aboutsummaryrefslogtreecommitdiffhomepage
path: root/kernel
diff options
context:
space:
mode:
authorGravatar barras <barras@85f007b7-540e-0410-9357-904b9bb8a0f7>2006-12-12 11:06:05 +0000
committerGravatar barras <barras@85f007b7-540e-0410-9357-904b9bb8a0f7>2006-12-12 11:06:05 +0000
commit65d83353c9bc45398d5c0d82702a074ff24faeb4 (patch)
treec0ca39f39a4446cec1a98200c0d4dba57184d43e /kernel
parent518ff68fd367cd3e68d60692aa23ae47087d6342 (diff)
cosmetique
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@9442 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'kernel')
-rw-r--r--kernel/inductive.ml10
1 files changed, 4 insertions, 6 deletions
diff --git a/kernel/inductive.ml b/kernel/inductive.ml
index 5add092e1..4d3c076d4 100644
--- a/kernel/inductive.ml
+++ b/kernel/inductive.ml
@@ -665,12 +665,10 @@ let check_one_fix renv recpos def =
let np = recpos.(glob) in
if List.length l <= np then error_partial_apply renv glob
else
- (match list_chop np l with
- (la,(z::lrest)) ->
- (* Check the decreasing arg is smaller *)
- if not (check_is_subterm renv z) then
- error_illegal_rec_call renv glob z
- | _ -> assert false)
+ (* Check the decreasing arg is smaller *)
+ let z = List.nth l np in
+ if not (check_is_subterm renv z) then
+ error_illegal_rec_call renv glob z
| Case (ci,p,c_0,lrest) ->
List.iter (check_rec_call renv) (c_0::p::l);