1
0
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:
Ken Thompson 2008-07-09 17:15:10 -07:00
parent e4a1fb7e94
commit 2d7eecbbf4

View File

@ -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);
}