aboutsummaryrefslogtreecommitdiff
path: root/funcs.go
diff options
context:
space:
mode:
authorChris Wendt <chrismwendt@gmail.com>2022-06-08 01:35:20 -0600
committerChris Wendt <chrismwendt@gmail.com>2022-06-08 01:35:20 -0600
commit53b98cfddef7afcb79d8a1b35fb186b58426c1d4 (patch)
tree377c94fe85502b2525615dbc51d68d6a3ec0e1e9 /funcs.go
parentgo mod tidy (diff)
downloadstm-53b98cfddef7afcb79d8a1b35fb186b58426c1d4.tar.gz
stm-53b98cfddef7afcb79d8a1b35fb186b58426c1d4.tar.xz
use generic atomic
Diffstat (limited to 'funcs.go')
-rw-r--r--funcs.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/funcs.go b/funcs.go
index 8694eb4..53975e0 100644
--- a/funcs.go
+++ b/funcs.go
@@ -105,7 +105,7 @@ retry:
// AtomicGet is a helper function that atomically reads a value.
func AtomicGet(v *Var) interface{} {
- return v.value.Load().(VarValue).Get()
+ return v.value.Load().Get()
}
// AtomicSet is a helper function that atomically writes a value.