aboutsummaryrefslogtreecommitdiff
path: root/lib/hashset.ml
diff options
context:
space:
mode:
authorHugo Herbelin2015-08-02 14:45:24 +0200
committerHugo Herbelin2016-03-22 11:35:46 +0100
commit2e557589920156fe84335e72c5e765347bcc7c9c (patch)
treee6d29f6f405764c933255feeb1d0e8add843efa7 /lib/hashset.ml
parent920f1548e9245ddfc8b923c5039a5e09dc0c87d4 (diff)
A patch renaming equal into eq in the module dealing with
hash-consing, so as to avoid having too many kinds of equalities with same name.
Diffstat (limited to 'lib/hashset.ml')
-rw-r--r--lib/hashset.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/hashset.ml b/lib/hashset.ml
index 6fb78f9a45..04009fdf3c 100644
--- a/lib/hashset.ml
+++ b/lib/hashset.ml
@@ -16,7 +16,7 @@
module type EqType = sig
type t
- val equal : t -> t -> bool
+ val eq : t -> t -> bool
end
type statistics = {
@@ -183,7 +183,7 @@ module Make (E : EqType) =
if i >= sz then ifnotfound index
else if h = hashes.(i) then begin
match Weak.get bucket i with
- | Some v when E.equal v d -> v
+ | Some v when E.eq v d -> v
| _ -> loop (i + 1)
end else loop (i + 1)
in