shithub: mc

Download patch

ref: 7635590c1cc9a58fc39a7134882f7a5a8cfd9213
parent: 174d472f8efa1f2cbf10ff36bcdd80dd87bbdcb9
author: Ori Bernstein <[email protected]>
date: Wed Apr 10 22:05:55 EDT 2013

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.

--- a/parse/infer.c
+++ b/parse/infer.c
@@ -1252,6 +1252,7 @@
     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);