Skip to content

Commit bff8255

Browse files
committed
fixed problem with hash-collisions in Hash(Map|Set).applyDeltaNoState
1 parent 2eae5fb commit bff8255

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/FSharp.Data.Adaptive/Datastructures/HashCollections.fs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,8 @@ module internal HashImplementation =
358358

359359
if exists then
360360
state <- SetLinked(delta.Key, restState)
361+
else
362+
state <- restState
361363

362364
match op with
363365
| ValueSome op ->
@@ -750,6 +752,7 @@ module internal HashImplementation =
750752
| ValueSome newValue ->
751753
state <- MapLinked(delta.Key, newValue, restState)
752754
| ValueNone ->
755+
state <- restState
753756
()
754757

755758
match op with

0 commit comments

Comments
 (0)