summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2013-05-01 13:33:04 -0400
committerOri Bernstein <ori@eigenstate.org>2013-05-01 13:33:04 -0400
commit66816792f7ab07880a1cc92d4ced4a115b100be3 (patch)
tree6289c1c442081a33da6aad24d1bd14e1ac5f71cb
parenta3b2e73283428008eebe4af1e57f41580b877cff (diff)
downloadmc-66816792f7ab07880a1cc92d4ced4a115b100be3.tar.gz
Allocate space for seqlit elements.
We forgot to allocate them.
-rw-r--r--parse/specialize.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse/specialize.c b/parse/specialize.c
index 19c9937..3cb332b 100644
--- a/parse/specialize.c
+++ b/parse/specialize.c
@@ -238,6 +238,7 @@ static Node *specializenode(Node *n, Htab *tsmap)
case Lbool: r->lit.boolval = n->lit.boolval; break;
case Lfunc: r->lit.fnval = specializenode(n->lit.fnval, tsmap); break;
case Lseq:
+ r->lit.seqval = xalloc(n->lit.nelt * sizeof(Node*));
for (i = 0; i < n->lit.nelt; i++)
r->lit.seqval[i] = specializenode(n->lit.seqval[i], tsmap);
break;