aboutsummaryrefslogtreecommitdiffhomepage
path: root/proofs/redexpr.ml
diff options
context:
space:
mode:
authorGravatar Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr>2016-11-04 14:48:36 +0100
committerGravatar Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr>2017-02-14 17:23:49 +0100
commitd528fdaf12b74419c47698cca7c6f1ec762245a3 (patch)
tree2edbaac4e19db595e0ec763de820cbc704897043 /proofs/redexpr.ml
parent6bd193ff409b01948751525ce0f905916d7a64bd (diff)
Retyping API using EConstr.
Diffstat (limited to 'proofs/redexpr.ml')
-rw-r--r--proofs/redexpr.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/proofs/redexpr.ml b/proofs/redexpr.ml
index 62fe2c17c..19e72e697 100644
--- a/proofs/redexpr.ml
+++ b/proofs/redexpr.ml
@@ -24,7 +24,7 @@ open Misctypes
(* call by value normalisation function using the virtual machine *)
let cbv_vm env sigma c =
- let ctyp = Retyping.get_type_of env sigma (EConstr.Unsafe.to_constr c) in
+ let ctyp = Retyping.get_type_of env sigma c in
Vnorm.cbv_vm env sigma c (EConstr.of_constr ctyp)
let warn_native_compute_disabled =
@@ -37,7 +37,7 @@ let cbv_native env sigma c =
(warn_native_compute_disabled ();
cbv_vm env sigma c)
else
- let ctyp = Retyping.get_type_of env sigma (EConstr.Unsafe.to_constr c) in
+ let ctyp = Retyping.get_type_of env sigma c in
Nativenorm.native_norm env sigma c (EConstr.of_constr ctyp)
let whd_cbn flags env sigma t =