summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2013-04-11 02:05:55 -0400
committerOri Bernstein <ori@eigenstate.org>2013-04-11 02:05:55 -0400
commit7635590c1cc9a58fc39a7134882f7a5a8cfd9213 (patch)
treef47f717750b199a0f27b53b48de37a251bad5c1a
parent174d472f8efa1f2cbf10ff36bcdd80dd87bbdcb9 (diff)
downloadmc-7635590c1cc9a58fc39a7134882f7a5a8cfd9213.tar.gz
Fix types up properly.
We were leaving sizes in arrays uninferred in some cases. Calling tyfix() on types that are only exported and not used will fix this.
-rw-r--r--parse/infer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse/infer.c b/parse/infer.c
index 0c6dbd5..e05d7e8 100644
--- a/parse/infer.c
+++ b/parse/infer.c
@@ -1252,6 +1252,7 @@ static void stabsub(Inferstate *st, Stab *s)
for (i = 0; i < n; i++) {
t = tf(st, gettype(s, k[i]));
updatetype(s, k[i], t);
+ tyfix(st, k[i], t);
}
free(k);