summaryrefslogtreecommitdiff
path: root/parse/type.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-01-28 21:30:58 -0800
committerOri Bernstein <ori@eigenstate.org>2016-01-29 22:36:12 -0800
commitc5649fe3ddc066335f816d59a4f31b9c26b1c230 (patch)
treeaaad3f24ac5aeab620963dbc9888adbfdcb39d8c /parse/type.c
parent284e7bb9bee1f03a7792347dd0da3a0c5dd2fbb4 (diff)
downloadmc-c5649fe3ddc066335f816d59a4f31b9c26b1c230.tar.gz
Clean up type inference a bit.
Diffstat (limited to 'parse/type.c')
-rw-r--r--parse/type.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/parse/type.c b/parse/type.c
index 0fcf85c..ae941cc 100644
--- a/parse/type.c
+++ b/parse/type.c
@@ -515,6 +515,7 @@ static int tybfmt(char *buf, size_t len, Type *t)
char *end;
char *sep;
+ t = tysearch(t);
sep = "";
p = buf;
end = p + len;
@@ -747,6 +748,7 @@ size_t tyidfmt(char *buf, size_t sz, Type *ty)
size_t i;
char *p, *end;
+ ty = tysearch(ty);
p = buf;
end = buf + sz;
switch (ty->type) {