aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMaxime Dénès2017-07-11 14:39:48 +0200
committerMaxime Dénès2017-07-11 14:39:48 +0200
commit8614fcd96d6fe538807099cde57f0c64d7e07b9d (patch)
tree987f73a01528e8613140b73d09227464165d5fa3 /lib
parentba7129f547d1f06c7eb67412404445681d22b920 (diff)
parent8e573766893da2287f36111d68a21792c045cf14 (diff)
Merge PR #860: use Int.equal instead of polymorphic =
Diffstat (limited to 'lib')
-rw-r--r--lib/hashset.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hashset.ml b/lib/hashset.ml
index 23ac2fed09..7f96627a68 100644
--- a/lib/hashset.ml
+++ b/lib/hashset.ml
@@ -181,7 +181,7 @@ module Make (E : EqType) =
let sz = Weak.length bucket in
let rec loop i =
if i >= sz then ifnotfound index
- else if h = hashes.(i) then begin
+ else if Int.equal h hashes.(i) then begin
match Weak.get bucket i with
| Some v when E.eq v d -> v
| _ -> loop (i + 1)