aboutsummaryrefslogtreecommitdiff
path: root/ast.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-02-11 23:09:00 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-02-11 23:09:00 -0500
commitddd9f6e5d542fca3186558e4d6603c4b05967121 (patch)
treedc70fdf5b0efecf30058c704ca10d7808c543fdf /ast.c
parent7d6af5f4c7663bddf4dad4a58c770dbdd299e022 (diff)
Fix operator precedence and boolification
Diffstat (limited to 'ast.c')
-rw-r--r--ast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ast.c b/ast.c
index 17f46f2e..6cb1fd67 100644
--- a/ast.c
+++ b/ast.c
@@ -125,7 +125,7 @@ CORD ast_to_cord(ast_t *ast)
T(EnumDef, "(%s, tags=%r, namespace=%r)", data.name, tags_to_cord(data.tags), ast_to_cord(data.namespace))
T(Index, "(indexed=%r, index=%r)", ast_to_cord(data.indexed), ast_to_cord(data.index))
T(FieldAccess, "(fielded=%r, field=%s)", ast_to_cord(data.fielded), data.field)
- T(DocTest, "(expr=%r, output=%s)", ast_to_cord(data.expr), data.output)
+ T(DocTest, "(expr=%r, output=%s)", ast_to_cord(data.expr), data.output ? data.output : "")
T(Use, "(%s)", data.path)
T(LinkerDirective, "(%s)", data.directive)
#undef T