mirror of
https://github.com/golang/go
synced 2024-11-12 08:00:22 -07:00
bug in offsets in imported struct fields
SVN=126591
This commit is contained in:
parent
e4a1fb7e94
commit
2d7eecbbf4
@ -564,6 +564,7 @@ doimport4(Node *ss, Node *n)
|
||||
|
||||
t = typ(TSTRUCT);
|
||||
importstotype(n, &t->type, t);
|
||||
dowidth(t);
|
||||
|
||||
importaddtyp(ss, t);
|
||||
}
|
||||
@ -619,6 +620,7 @@ doimport7(Node *ss, Node *n)
|
||||
|
||||
t = typ(TINTER);
|
||||
importstotype(n, &t->type, t);
|
||||
dowidth(t);
|
||||
|
||||
importaddtyp(ss, t);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user