summaryrefslogtreecommitdiff
path: root/6
diff options
context:
space:
mode:
Diffstat (limited to '6')
-rw-r--r--6/typeinfo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/6/typeinfo.c b/6/typeinfo.c
index 07066ac..9cd206a 100644
--- a/6/typeinfo.c
+++ b/6/typeinfo.c
@@ -95,6 +95,7 @@ size_t tyoffset(Type *ty, Node *memb)
size_t i;
size_t off;
+ ty = tybase(ty);
if (ty->type == Typtr)
ty = tybase(ty->sub[0]);