diff options
Diffstat (limited to 'src/ast.c')
-rw-r--r-- | src/ast.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -188,8 +188,9 @@ static void dump(int depth, const char *fmt, ...) va_list args; va_start(args, fmt); printf("//"); - for (int i = 0; i < depth; ++i) - printf(" "); + /* indent */ + if (depth != 0) + printf("%*c", 2 * depth, ' '); vprintf(fmt, args); |