aboutsummaryrefslogtreecommitdiff
path: root/funcs.go
diff options
context:
space:
mode:
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.