You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It turns out that math.SmallestNonzeroFloat64 / 2 is supposed to return 0 (hence an integer), but before Go 1.17, the value of math.SmallestNonzeroFloat64 was not sufficiently precise, thus returning a non-zero non-integer.
Running
go test ./...
with Go 1.17 with the following error:on line 212 of convert_test.go:
swag/convert_test.go
Line 212 in a879606
It turns out that
math.SmallestNonzeroFloat64 / 2
is supposed to return 0 (hence an integer), but before Go 1.17, the value ofmath.SmallestNonzeroFloat64
was not sufficiently precise, thus returning a non-zero non-integer.Please see:
for more information.
Many thanks!
The text was updated successfully, but these errors were encountered: