aboutsummaryrefslogtreecommitdiff
path: root/proofs
diff options
context:
space:
mode:
Diffstat (limited to 'proofs')
-rw-r--r--proofs/clenv.ml2
-rw-r--r--proofs/refine.ml2
2 files changed, 2 insertions, 2 deletions
diff --git a/proofs/clenv.ml b/proofs/clenv.ml
index c2130a64a3..0515e41986 100644
--- a/proofs/clenv.ml
+++ b/proofs/clenv.ml
@@ -670,7 +670,7 @@ let define_with_type sigma env ev c =
let t = Retyping.get_type_of env sigma (EConstr.of_constr ev) in
let ty = Retyping.get_type_of env sigma (EConstr.of_constr c) in
let j = Environ.make_judge c ty in
- let (sigma, j) = Coercion.inh_conv_coerce_to true (Loc.ghost) env sigma j t in
+ let (sigma, j) = Coercion.inh_conv_coerce_to true (Loc.ghost) env sigma j (EConstr.of_constr t) in
let (ev, _) = destEvar ev in
let sigma = Evd.define ev j.Environ.uj_val sigma in
sigma
diff --git a/proofs/refine.ml b/proofs/refine.ml
index b62f0bea48..19134bfa34 100644
--- a/proofs/refine.ml
+++ b/proofs/refine.ml
@@ -136,7 +136,7 @@ let with_type env evd c t =
let my_type = Retyping.get_type_of env evd (EConstr.of_constr c) in
let j = Environ.make_judge c my_type in
let (evd,j') =
- Coercion.inh_conv_coerce_to true (Loc.ghost) env evd j t
+ Coercion.inh_conv_coerce_to true (Loc.ghost) env evd j (EConstr.of_constr t)
in
evd , j'.Environ.uj_val