Skip to content

Commit

Permalink
go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanwichmann committed Feb 13, 2022
1 parent 3261821 commit cb44439
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions util.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ func equalsFloat(a []float32, b []float32, maxDiff float32) bool {
return false
}
for index := 0; index < len(a); index++ {
if maxDiff == 0 {
// Special case to prevent 'rounded' from becoming NaN
if maxDiff == 0 {
// Special case to prevent 'rounded' from becoming NaN
// below and therefore 'rounded > maxDiff' always being
// false.
if a[index] != b[index] {
return false
if a[index] != b[index] {
return false
}
continue
}
Expand Down

0 comments on commit cb44439

Please sign in to comment.