diff options
| author | Pierre-Marie Pédrot | 2013-12-30 17:02:36 +0100 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2013-12-30 17:09:00 +0100 |
| commit | 73c57090f7509e8d076ec7445278404ddc87f31e (patch) | |
| tree | 1a42f06da58ad81a2d60cc4fab43800d3631f7c7 | |
| parent | e80e911ec4fa174ebb4a8e79362dbc7946b49b98 (diff) | |
When resetting an evarmap with the unsafe function Evd.evars_reset_evd with
the flag with_conv_pbs, only reset the metas, not the last_mod field. It seemed
strange to mix two unrelated things. This did not break anything visible...
| -rw-r--r-- | pretyping/evd.ml | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pretyping/evd.ml b/pretyping/evd.ml index 5870a22b73..1d084ac9bc 100644 --- a/pretyping/evd.ml +++ b/pretyping/evd.ml @@ -504,10 +504,8 @@ let has_undefined evd = not (EvMap.is_empty evd.undf_evars) let evars_reset_evd ?(with_conv_pbs=false) evd d = let conv_pbs = if with_conv_pbs then evd.conv_pbs else d.conv_pbs in - { evd with - metas = d.metas; - last_mods = d.last_mods; - conv_pbs; } + let last_mods = if with_conv_pbs then evd.last_mods else d.last_mods in + { evd with metas = d.metas; last_mods; conv_pbs; } let add_conv_pb pb d = {d with conv_pbs = pb::d.conv_pbs} |
