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
gopls/internal/analysis/modernize: disable minmax on floating point
The built-in min and max functions return NaN if any operand is
NaN, so the minmax transformation is not sound for certain inputs.
Since it is usually infeasible to prove that the operands are not NaN,
this CL disables minmax for floating-point operands.
Behavior-preserving translation: celebrating 75 years of being
harder than it looks.
Fixesgolang/go#72829
Change-Id: Idb3454fea7ec37842e622154f66d5898703a392f
Reviewed-on: https://go-review.googlesource.com/c/tools/+/657955
Auto-Submit: Alan Donovan <[email protected]>
Commit-Queue: Alan Donovan <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
Reviewed-by: Robert Findley <[email protected]>
0 commit comments