Skip to content

Commit

Permalink
feat: fix hash conflict in map
Browse files Browse the repository at this point in the history
  • Loading branch information
siyul-park committed Nov 24, 2023
1 parent 7f234e1 commit 2b97aa7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/primitive/map.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,9 @@ func (*comparer) Compare(a Object, b Object) int {
return -1
}

// FIXME: hash conflict.
if !a.Equal(b) {
return 1
}
return 0
}

Expand Down

0 comments on commit 2b97aa7

Please sign in to comment.