summaryrefslogtreecommitdiff
path: root/parse/dump.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2012-10-03 21:47:54 -0400
committerOri Bernstein <ori@eigenstate.org>2012-10-03 21:47:54 -0400
commit73b7b068a03c3d58e12cad05dea5a2008af78952 (patch)
treef03f5b11491f0786fae0545ba4b0a685123b1ac4 /parse/dump.c
parent410752ea2d5f6661e363379d14bd255521ca46e7 (diff)
downloadmc-73b7b068a03c3d58e12cad05dea5a2008af78952.tar.gz
Duplicate types correctly.
We need to copy all of their members.
Diffstat (limited to 'parse/dump.c')
-rw-r--r--parse/dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse/dump.c b/parse/dump.c
index dec9e71..1ea00c2 100644
--- a/parse/dump.c
+++ b/parse/dump.c
@@ -132,7 +132,7 @@ static void outnode(Node *n, FILE *fd, int depth)
outnode(n->file.stmts[i], fd, depth + 1);
break;
case Ndecl:
- fprintf(fd, "(did = %zd, isconst = %d, isgeneric = %d, isextern = %d\n, isexport = %d)",
+ fprintf(fd, "(did = %zd, isconst = %d, isgeneric = %d, isextern = %d, isexport = %d)\n",
n->decl.did, n->decl.isconst, n->decl.isgeneric, n->decl.isextern, n->decl.isexport);
outsym(n, fd, depth + 1);
outnode(n->decl.init, fd, depth + 1);