summaryrefslogtreecommitdiff
path: root/parse/type.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-01-30 01:00:40 -0800
committerOri Bernstein <ori@eigenstate.org>2016-01-30 01:00:40 -0800
commitf50159ce18288e7c22fbef33617e6226bd1ef87b (patch)
tree119b14c7dffd19af7a22e90123a459b0153a7984 /parse/type.c
parent29bd0da380f893e1f031c36878676a460fd18402 (diff)
downloadmc-f50159ce18288e7c22fbef33617e6226bd1ef87b.tar.gz
Give better errors on infinite types.
We used to miss some of them, and we used to givea a confusing error about incompatibility.
Diffstat (limited to 'parse/type.c')
-rw-r--r--parse/type.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/parse/type.c b/parse/type.c
index ae941cc..4224845 100644
--- a/parse/type.c
+++ b/parse/type.c
@@ -515,7 +515,8 @@ static int tybfmt(char *buf, size_t len, Type *t)
char *end;
char *sep;
- t = tysearch(t);
+ if (t)
+ t = tysearch(t);
sep = "";
p = buf;
end = p + len;