aboutsummaryrefslogtreecommitdiff
path: root/lib/hashset.ml
diff options
context:
space:
mode:
authorHugo Herbelin2015-08-02 14:45:24 +0200
committerHugo Herbelin2015-08-02 19:13:51 +0200
commit979de570714d340aaab7a6e99e08d46aa616e7da (patch)
treecdc7c70266c00b267dba9e698a40b79bb381ceae /lib/hashset.ml
parentf556da10a117396c2c796f6915321b67849f65cd (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 1ca6cc6418..9454aef9bb 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