Bug in the function "mem" of the functorial interface
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2601 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02master
parent
66a68e3e24
commit
764f2c83c3
|
@ -210,7 +210,7 @@ module Make(H: HashedType): (S with type key = H.t) =
|
|||
false
|
||||
| Cons(k, d, rest) ->
|
||||
H.equal k key || mem_in_bucket rest in
|
||||
mem_in_bucket h.data.((hash_param 10 100 key) mod (Array.length h.data))
|
||||
mem_in_bucket h.data.((H.hash key) mod (Array.length h.data))
|
||||
|
||||
|
||||
let iter = iter
|
||||
|
|
Loading…
Reference in New Issue