diff options
| author | Hugo Herbelin | 2020-07-24 17:31:41 +0200 |
|---|---|---|
| committer | Hugo Herbelin | 2020-07-24 17:31:41 +0200 |
| commit | bae29094a5185029dfbd21414a1dccad645d2e32 (patch) | |
| tree | 6ec700426357b43f3c942db411dd8b600b6325d0 /pretyping/reductionops.ml | |
| parent | e9061bb414dfebad5bdf2efe634030563f8a2381 (diff) | |
Fixes reduction effect printing in the presence of non purely applicative stacks.
Diffstat (limited to 'pretyping/reductionops.ml')
| -rw-r--r-- | pretyping/reductionops.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pretyping/reductionops.ml b/pretyping/reductionops.ml index fdc770dba6..bbd8fa0434 100644 --- a/pretyping/reductionops.ml +++ b/pretyping/reductionops.ml @@ -757,7 +757,7 @@ let rec whd_state_gen flags env sigma = | None -> fold ()) | Const (c,u as const) -> reduction_effect_hook env sigma c - (lazy (EConstr.to_constr sigma (Stack.zip sigma (x,stack)))); + (lazy (EConstr.to_constr sigma (Stack.zip sigma (x,fst (Stack.strip_app stack))))); if CClosure.RedFlags.red_set flags (CClosure.RedFlags.fCONST c) then let u' = EInstance.kind sigma u in match constant_value_in env (c, u') with |
