From 6a01446a631077a6de3a38098166d6e820e10a98 Mon Sep 17 00:00:00 2001 From: Sung Yoon Whang Date: Thu, 17 Jun 2021 15:09:53 -0700 Subject: [PATCH] Fix lint error on float64_ext.go (#97) --- float64_ext.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/float64_ext.go b/float64_ext.go index b441d38..df36b01 100644 --- a/float64_ext.go +++ b/float64_ext.go @@ -58,8 +58,8 @@ func (f *Float64) Sub(delta float64) float64 { // } // // If CAS did not match NaN to match, then the above would loop forever. -func (x *Float64) CAS(old, new float64) (swapped bool) { - return x.v.CAS(math.Float64bits(old), math.Float64bits(new)) +func (f *Float64) CAS(old, new float64) (swapped bool) { + return f.v.CAS(math.Float64bits(old), math.Float64bits(new)) } // String encodes the wrapped value as a string.