x/sys/unix: BTRFS_SUPER_MAGIC overflows Statfs_t.Type's type on 32-bit platforms #52061
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?What did you do?
What did you expect to see?
Code compiles on all platforms.
What did you see instead?
The code compiles on amd64 and arm64, but on 386 and arm it fails:
Statfs_t.Type is an int32 or int64, depending on the platform. Maybe the constant should be typed accordingly?
Ref restic/restic#3687.
The text was updated successfully, but these errors were encountered: