Skip to content

Commit

Permalink
hashmap fix
Browse files Browse the repository at this point in the history
  • Loading branch information
akos-tk committed Sep 9, 2024
1 parent 1afe53c commit 95f63cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tlb/hashmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ func (h Hashmap[keyT, T]) Get(key keyT) (T, bool) {
}
return *new(T), false
}
func (h Hashmap[keyT, T]) Put(key keyT, value T) {
func (h *Hashmap[keyT, T]) Put(key keyT, value T) {
for i, k := range h.keys {
if k.Equal(key) {
h.values[i] = value
Expand Down Expand Up @@ -681,7 +681,7 @@ func (h HashmapE[keyT, T]) Get(key keyT) (T, bool) {
return h.m.Get(key)
}

func (h HashmapE[keyT, T]) Put(key keyT, value T) {
func (h *HashmapE[keyT, T]) Put(key keyT, value T) {
h.m.Put(key, value)
}

Expand Down

0 comments on commit 95f63cd

Please sign in to comment.