Skip to content
Snippets Groups Projects
Commit 534c7f45 authored by Basile Desloges's avatar Basile Desloges Committed by Julien Signoles
Browse files

[eacsl] Fix Lscope.compare

parent a2ea6893
No related branches found
No related tags found
No related merge requests found
...@@ -135,11 +135,11 @@ module D = Datatype.Make(struct ...@@ -135,11 +135,11 @@ module D = Datatype.Make(struct
in in
let c = let c =
if c <> 0 then c if c <> 0 then c
else compare lr1 lr2 else Stdlib.compare lr1 lr2
in in
let c = let c =
if c <> 0 then c if c <> 0 then c
else compare rr1 rr2 else Stdlib.compare rr1 rr2
in in
c c
| Lvs_formal (lv1, li1), Lvs_formal (lv2, li2) -> | Lvs_formal (lv1, li1), Lvs_formal (lv2, li2) ->
...@@ -154,6 +154,8 @@ module D = Datatype.Make(struct ...@@ -154,6 +154,8 @@ module D = Datatype.Make(struct
lscope_vars1 lscope_vars1
lscope_vars2 lscope_vars2
let equal = Datatype.from_compare
let hash lscope = let hash lscope =
let lscope_vars = get_all lscope in let lscope_vars = get_all lscope in
hash_list hash_list
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment