aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/extraction/mlutil.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/extraction/mlutil.ml b/contrib/extraction/mlutil.ml
index 7149d27787..3e4a0f0659 100644
--- a/contrib/extraction/mlutil.ml
+++ b/contrib/extraction/mlutil.ml
@@ -296,10 +296,10 @@ let rec betaiota = function
(function
| (n, i, MLcons (r,a))->
let (_,ids,c) = br.(constructor_index r) in
- let c = ml_lift (List.length i) c in
- let c' = List.fold_right
+ let c = List.fold_right
(fun id t -> MLlam (id,t)) ids c in
- (n,i,betaiota (MLapp (c',a)))
+ let c = ml_lift (List.length i) c in
+ (n,i,betaiota (MLapp (c,a)))
| _ -> assert false) br'
in MLcase(e', new_br)
| e' ->