Ring: swap operation order in Ring.Maketable.add
This commit is contained in:
parent
511b47148c
commit
3683e948c1
@ -111,10 +111,10 @@ module MakeTable (V: Hashtbl.HashedType) = struct
|
|||||||
table = Table.create size }
|
table = Table.create size }
|
||||||
|
|
||||||
let add {contents = t } v =
|
let add {contents = t } v =
|
||||||
Table.add t.table v ();
|
|
||||||
Option.iter
|
Option.iter
|
||||||
(Ring.add_and_return_erased t.ring v)
|
(Ring.add_and_return_erased t.ring v)
|
||||||
~f:(Table.remove t.table)
|
~f:(Table.remove t.table);
|
||||||
|
Table.add t.table v ()
|
||||||
|
|
||||||
let mem {contents = t} v = Table.mem t.table v
|
let mem {contents = t} v = Table.mem t.table v
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user