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
Converting a float32 to an integer type has different behaviors on darwin/arm64 vs x86 when the float value overflows the target integer type. A sample project can be found here: https://go.dev/play/p/WZoGD3q1LBx
What did you expect to see?
darwin/arm64
float64
int8
uint8
uint64
3.4028234663852886e+38
-1
255
18446744073709551615
-3.4028234663852886e+38
0
0
0
256
0
0
256
-1.4
-1
255
0
What did you see instead?
linux/x86
float64
int8
uint8
uint64
3.4028234663852886e+38
0
0
9223372036854775808
-3.4028234663852886e+38
0
0
9223372036854775808
256
0
0
256
-1.4
-1
255
18446744073709551615
The text was updated successfully, but these errors were encountered:
Go version
1.21
What operating system and processor architecture are you using (
go env
)?What did you do?
Converting a float32 to an integer type has different behaviors on darwin/arm64 vs x86 when the float value overflows the target integer type. A sample project can be found here: https://go.dev/play/p/WZoGD3q1LBx
What did you expect to see?
darwin/arm64
What did you see instead?
linux/x86
The text was updated successfully, but these errors were encountered: