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
In all non-constant conversions involving floating-point or complex values, if the result type cannot represent the value the conversion succeeds but the result value is implementation-dependent.
The problem is that 1.8446744073709552e+19 is 18,446,744,073,709,552,000 which is 0x1_0000_0000_0000_0180 (i.e. Go rounds the 0xffff_ffff_ffff_ffff literal up instead of down when converting to float64, which then doesn't fit back into uint64).
Maybe the safest upper limit to use is 18,446,744,073,709,550,000 which is 0xffff_ffff_ffff_f800. That's the next lowest 64-bit floating-point number, and the first one that is under 0xffff_ffff_ffff_ffff and representable as uint64.
For
arm64
:For
64
:Obviously not that important. Stumbled upon it while bundling mapbox/pbf
Potentially related to #2162 fix?
The text was updated successfully, but these errors were encountered: