diff --git a/util.go b/util.go index 93d2f86..8dd084d 100644 --- a/util.go +++ b/util.go @@ -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 }