From: Ken Thompson Date: Thu, 10 Jul 2008 00:15:10 +0000 (-0700) Subject: bug in offsets in imported struct fields X-Git-Tag: weekly.2009-11-06~3527 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2d7eecbbf4cba0aa820ebe4e0997a0360fbb4e14;p=gostls13.git bug in offsets in imported struct fields SVN=126591 --- diff --git a/src/cmd/gc/export.c b/src/cmd/gc/export.c index e2ecf6c37c..d84e203686 100644 --- a/src/cmd/gc/export.c +++ b/src/cmd/gc/export.c @@ -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); }