We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building this test case with go build foo.go
go build foo.go
package p /* typedef struct { unsigned long x : 40; } s; */ import "C" var v C.s
produces
# command-line-arguments /tmp/go-build300185653/b001/_cgo_gotypes.go:23:4: undefined: uint40
Oddly, something seems to be special about the number 40.
40
The text was updated successfully, but these errors were encountered:
Ah, it fails when the bit size is a multiple of 8 other than 8, 16, 32, 64.
Sorry, something went wrong.
Change https://golang.org/cl/81435 mentions this issue: cmd/cgo: for C bitfields use only valid Go integer types
cmd/cgo: for C bitfields use only valid Go integer types
bfa7a55
No branches or pull requests
Building this test case with
go build foo.go
produces
Oddly, something seems to be special about the number
40
.The text was updated successfully, but these errors were encountered: