mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 03:05:28 -05:00
fixed stupid bug in FHashble.Flat
This commit is contained in:
parent
0320630b2d
commit
b5a9ae03e7
1 changed files with 4 additions and 2 deletions
|
|
@ -353,8 +353,10 @@ module Flat(X : HASH) = struct
|
|||
else match PArray.get buckets i with
|
||||
| Used (key, value) ->
|
||||
(* insert key -> value into new array *)
|
||||
insert buckets' (X.hash key) key value
|
||||
| _ -> buckets'
|
||||
let buckets' = insert buckets' (X.hash key) key value in
|
||||
tranfer buckets' (i+1)
|
||||
| _ ->
|
||||
tranfer buckets' (i+1)
|
||||
in tranfer buckets' 0
|
||||
|
||||
(** Lookup [key] in the table *)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue