Skip to content

Commit

Permalink
Fix lint error on float64_ext.go (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
sywhang committed Jun 17, 2021
1 parent d8a8972 commit 6a01446
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions float64_ext.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6a01446

Please sign in to comment.