Fix lint error on float64_ext.go (#97)

This commit is contained in:
Sung Yoon Whang
2021-06-17 15:09:53 -07:00
committed by GitHub
parent d8a8972198
commit 6a01446a63

View File

@@ -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. // If CAS did not match NaN to match, then the above would loop forever.
func (x *Float64) CAS(old, new float64) (swapped bool) { func (f *Float64) CAS(old, new float64) (swapped bool) {
return x.v.CAS(math.Float64bits(old), math.Float64bits(new)) return f.v.CAS(math.Float64bits(old), math.Float64bits(new))
} }
// String encodes the wrapped value as a string. // String encodes the wrapped value as a string.