aboutsummaryrefslogtreecommitdiff
path: root/kernel/nativelambda.ml
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/nativelambda.ml')
-rw-r--r--kernel/nativelambda.ml6
1 files changed, 4 insertions, 2 deletions
diff --git a/kernel/nativelambda.ml b/kernel/nativelambda.ml
index f530f6e2ec..9c400e4c03 100644
--- a/kernel/nativelambda.ml
+++ b/kernel/nativelambda.ml
@@ -631,11 +631,13 @@ and lambda_of_app env f args =
let cb = lookup_constant kn !global_env in
begin match cb.const_body with
| Def csubst ->
- if cb.const_inline_code then lambda_of_app env (force csubst) args
+ if cb.const_inline_code then
+ lambda_of_app env (Lazyconstr.force csubst) args
else
let prefix = get_const_prefix !global_env kn in
let t =
- if is_lazy (force csubst) then mkLapp Lforce [|Lconst (prefix, kn)|]
+ if is_lazy (Lazyconstr.force csubst) then
+ mkLapp Lforce [|Lconst (prefix, kn)|]
else Lconst (prefix, kn)
in
mkLapp t (lambda_of_args env 0 args)