mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
reflect: fix struct size calculation to include terminal padding
LGTM=r R=r CC=golang-codereviews https://golang.org/cl/160920045
This commit is contained in:
parent
68521aa6a8
commit
4e1d196543
2 changed files with 21 additions and 0 deletions
|
|
@ -1544,6 +1544,7 @@ func (gc *gcProg) appendProg(t *rtype) {
|
|||
for i := 0; i < c; i++ {
|
||||
gc.appendProg(t.Field(i).Type.common())
|
||||
}
|
||||
gc.align(uintptr(t.align))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue