summaryrefslogtreecommitdiff
path: root/parse
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-05-08 01:47:40 -0700
committerOri Bernstein <ori@eigenstate.org>2015-05-08 01:47:40 -0700
commitae3b82a3fa5ee691c7f25bdb80be2b9c62a2b3cc (patch)
treed0cb158e5f381385863c1e3bd6c0284b4f06159f /parse
parent1f6f2f9b343ba8eb859258af7f1939d542bfa713 (diff)
downloadmc-ae3b82a3fa5ee691c7f25bdb80be2b9c62a2b3cc.tar.gz
A few more fixes for dataflow checks.
Diffstat (limited to 'parse')
-rw-r--r--parse/dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse/dump.c b/parse/dump.c
index 88d5e57..43b5d31 100644
--- a/parse/dump.c
+++ b/parse/dump.c
@@ -204,7 +204,7 @@ static void outnode(Node *n, FILE *fd, int depth)
case Lbool: fprintf(fd, " Lbool %s\n", n->lit.boolval ? "true" : "false"); break;
case Lint: fprintf(fd, " Lint %llu\n", n->lit.intval); break;
case Lflt: fprintf(fd, " Lflt %lf\n", n->lit.fltval); break;
- case Lstr: fprintf(fd, " Lstr %s\n", n->lit.strval.buf); break;
+ case Lstr: fprintf(fd, " Lstr %.*s\n", (int)n->lit.strval.len, n->lit.strval.buf); break;
case Llbl: fprintf(fd, " Llbl %s\n", n->lit.lblval); break;
case Lfunc:
fprintf(fd, " Lfunc\n");