ref: 29dbba4f6f70ab511fa4884b82dc1c0bbce3f981
parent: fdd488c60450d605e22992104983224a00089877
author: Ori Bernstein <[email protected]>
date: Mon Jun 4 17:39:51 EDT 2012
Fix typo in type creation. Forgot to set the number of children when making arrays. Oops.
--- a/parse/type.c
+++ b/parse/type.c
@@ -126,6 +126,7 @@
Type *t;
t = mkty(line, Tyarray);
+ t->nsub = 1;
t->sub = xalloc(sizeof(Type*));
t->sub[0] = base;
t->asize = sz;
@@ -138,6 +139,7 @@
Type *t;
t = mkty(line, Tyslice);
+ t->nsub = 1;
t->sub = xalloc(sizeof(Type*));
t->sub[0] = base;
return t;
@@ -148,6 +150,7 @@
Type *t;
t = mkty(line, Tyidxhack);
+ t->nsub = 1;
t->sub = xalloc(sizeof(Type*));
t->sub[0] = base;
return t;