summaryrefslogtreecommitdiff
path: root/parse/use.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse/use.c')
-rw-r--r--parse/use.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/parse/use.c b/parse/use.c
index 24e8da7..949e069 100644
--- a/parse/use.c
+++ b/parse/use.c
@@ -415,9 +415,9 @@ Trait *traitunpickle(FILE *fd)
tr->ishidden = rdbool(fd);
tr->name = unpickle(fd);
tr->param = tyunpickle(fd);
- n = rdint(fd);
- tr->aux = zalloc(n * sizeof(Type*));
- for (i = 0; i < n; i++)
+ tr->naux = rdint(fd);
+ tr->aux = zalloc(tr->naux * sizeof(Type*));
+ for (i = 0; i < tr->naux; i++)
rdtype(fd, &tr->aux[i]);
n = rdint(fd);
for (i = 0; i < n; i++)