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:
Vladimir Nikishenko 2012-11-21 13:04:38 -08:00 committed by Ian Lance Taylor
parent 42c8904fe1
commit dd01e9281d
3 changed files with 46 additions and 1 deletions

View file

@ -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 {