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
Before filing a bug, please check whether it has been fixed since
the latest release: run "hg pull -u" and retry what you did to
reproduce the problem. Thanks.
What steps will reproduce the problem?
1. Download the attached source file.
2. Run the command "cgo bitfield.go"
What is the expected output? What do you see instead?
I expect no output because the command will be successful. I got:
struct size calculation error
What is your $GOOS? $GOARCH?
$GOOS = linux
$GOARCH = amd64
Which revision are you sync'ed to? (hg log -l 1)
changeset: 4034:91b34a55c1a4
tag: tip
user: Rob Pike <r@golang.org>
date: Fri Nov 13 16:00:55 2009 -0800
summary: fix typo
Please provide any additional information below.
Digging into the cgo code a little, it looks like the problem's in gcc.go
in Struct(). off == 20, but dt.ByteSize == 4, but because they're not equal
the error is printed. 4 is the correct size.
Attachments:
The text was updated successfully, but these errors were encountered: