summaryrefslogtreecommitdiff
path: root/parse/type.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-01-01 01:30:17 -0800
committerOri Bernstein <ori@eigenstate.org>2016-01-01 01:30:17 -0800
commite22c4b573a6d0d71a8781ef655a7249f8b1921a4 (patch)
treeb8987ba2209db53a0f5fdbc27ddac66838e6e754 /parse/type.c
parentffc55ee721c02d1caede8d7fbad9e8b687f01306 (diff)
downloadmc-e22c4b573a6d0d71a8781ef655a7249f8b1921a4.tar.gz
Fix style.
Diffstat (limited to 'parse/type.c')
-rw-r--r--parse/type.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/parse/type.c b/parse/type.c
index f73a8ac..d1da5e8 100644
--- a/parse/type.c
+++ b/parse/type.c
@@ -488,8 +488,7 @@ static int fmtunion(char *buf, size_t len, Type *t)
ty = tystr(t->udecls[i]->etype);
p += bprintf(p, end - p, "\t`%s %s\n", name, ty);
free(ty);
- }
- else {
+ } else {
p += bprintf(p, end - p, "\t`%s\n", name);
}
}
@@ -563,8 +562,7 @@ static int tybfmt(char *buf, size_t len, Type *t)
if (t->asize) {
i = t->asize->expr.args[0]->lit.intval;
p += bprintf(p, end - p, "[%zd]", i);
- }
- else {
+ } else {
p += bprintf(p, end - p, "[]");
}
break;