mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2026-01-24 01:56:41 -05:00
do not assume too much on initial size
This commit is contained in:
parent
7d96c9092a
commit
d00144375b
1 changed files with 1 additions and 1 deletions
|
|
@ -156,7 +156,7 @@ module Tree(X : HASH) = struct
|
|||
|
||||
(** Empty hashtable *)
|
||||
let empty size =
|
||||
let size = max size 16 in (* size >= 16 *)
|
||||
let size = max size 4 in (* size >= 4 *)
|
||||
Table (empty_buckets size)
|
||||
|
||||
(** The address in a bucket array, after probing [i] times *)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue