diff options
| author | Pierre-Marie Pédrot | 2019-11-29 15:38:20 +0100 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2020-12-09 14:05:53 +0100 |
| commit | 88f8f535084567d5d52d510802b3cee15c2b3503 (patch) | |
| tree | 532bf3c1e16369a8a47f4f309da4ca4cc617c24a /kernel/typeops.ml | |
| parent | de1beefc8786e8edc616f629a1ae3175a9af6d09 (diff) | |
Optimization: take advantage that we don't use arrays anymore in substitutions.
Diffstat (limited to 'kernel/typeops.ml')
| -rw-r--r-- | kernel/typeops.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/typeops.ml b/kernel/typeops.ml index 85e24f87b7..802a32b0e7 100644 --- a/kernel/typeops.ml +++ b/kernel/typeops.ml @@ -198,7 +198,7 @@ let type_of_apply env func funt argsv argstv = let argt = argstv.(i) in let c1 = term_of_fconstr c1 in begin match conv_leq false env argt c1 with - | () -> apply_rec (i+1) (mk_clos (Esubst.subs_cons ([| inject arg |], e)) c2) + | () -> apply_rec (i+1) (mk_clos (Esubst.subs_cons (inject arg) e) c2) | exception NotConvertible -> error_cant_apply_bad_type env (i+1,c1,argt) |
