diff options
author | Maxime Dénès <mail@maximedenes.fr> | 2017-12-07 11:00:46 +0100 |
---|---|---|
committer | Maxime Dénès <mail@maximedenes.fr> | 2017-12-07 11:00:46 +0100 |
commit | 2bb33cd402137f72861eda559c51014f48f6f633 (patch) | |
tree | 84ce339d612e8a8f648e95727c97e9cc54d70d16 /engine/universes.ml | |
parent | 9cac9db6446b31294d2413d920db0eaa6dd5d8a6 (diff) | |
parent | f53156a6d3819682dc888835abcef2b5320dab1b (diff) |
Merge PR #6290: Rename update to set, Fixes #6196
Diffstat (limited to 'engine/universes.ml')
-rw-r--r-- | engine/universes.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/universes.ml b/engine/universes.ml index 93696b4ca..0250295fd 100644 --- a/engine/universes.ml +++ b/engine/universes.ml @@ -491,7 +491,7 @@ module LevelUnionFind = Unionfind.Make (Univ.LSet) (Univ.LMap) let add_list_map u t map = try let l = LMap.find u map in - LMap.update u (t :: l) map + LMap.set u (t :: l) map with Not_found -> LMap.add u [t] map @@ -584,7 +584,7 @@ let normalize_univ_variable_subst subst = let find l = Univ.LMap.find l !subst in let update l b = assert (match Universe.level b with Some l' -> not (Level.equal l l') | None -> true); - try subst := Univ.LMap.update l b !subst; b with Not_found -> assert false in + try subst := Univ.LMap.set l b !subst; b with Not_found -> assert false in normalize_univ_variable ~find ~update let normalize_universe_opt_subst subst = |