From 2d7eecbbf4cba0aa820ebe4e0997a0360fbb4e14 Mon Sep 17 00:00:00 2001 From: Ken Thompson Date: Wed, 9 Jul 2008 17:15:10 -0700 Subject: [PATCH] bug in offsets in imported struct fields SVN=126591 --- src/cmd/gc/export.c | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.48.1