ref: 0bc3c3660e505983539b62f7f97d880622011d81
parent: c9abdb3231c701b9602b9d8c74c2cd03299233a9
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Dec 19 16:06:08 EST 2011
Grow the typetab on type allocation It's the right thing to do.
--- a/parse/type.c
+++ b/parse/type.c
@@ -50,6 +50,7 @@
t = zalloc(sizeof(Type));
t->type = ty;
t->tid = nexttid++;
+ typetab = realloc(typetab, nexttid*sizeof(Type*));
return t;
}