mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/cgo: fix alignment of bool.
Fixes #4417. R=golang-dev, iant, minux.ma, bradfitz CC=golang-dev, vova616 https://golang.org/cl/6782097
This commit is contained in:
parent
42c8904fe1
commit
dd01e9281d
3 changed files with 46 additions and 1 deletions
|
|
@ -1078,7 +1078,7 @@ func (c *typeConv) Type(dtype dwarf.Type, pos token.Pos) *Type {
|
|||
|
||||
case *dwarf.BoolType:
|
||||
t.Go = c.bool
|
||||
t.Align = c.ptrSize
|
||||
t.Align = 1
|
||||
|
||||
case *dwarf.CharType:
|
||||
if t.Size != 1 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue