sync/atomic: Actually call the load function

This commit is contained in:
Sasha Koshka 2025-09-12 06:11:45 -04:00
parent c49e33b0c3
commit 417eb2f962

View File

@ -17,7 +17,7 @@ func (atom *Atom[T]) CompareAndSwap(old, neww T) (swapped bool) {
}
func (atom *Atom[T]) Load() T {
return castSafe[T](atom.value.Load)
return castSafe[T](atom.value.Load())
}
func (atom *Atom[T]) Store(val T) {