aboutsummaryrefslogtreecommitdiff
path: root/src/ast_render.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-05-02 16:56:47 -0400
committerGitHub <noreply@github.com>2018-05-02 16:56:47 -0400
commit6f002e724bb4571ff31949a36f2e634e522eb42b (patch)
tree951898110c02048ec6c174b402df14624699c68a /src/ast_render.cpp
parent86a428a4a52172df5e49436212e9f769248e0b15 (diff)
parent1a9403f38a89d4a55f746d077d725424b8852d44 (diff)
downloadzig-6f002e724bb4571ff31949a36f2e634e522eb42b.tar.gz
zig-6f002e724bb4571ff31949a36f2e634e522eb42b.zip
Merge pull request #975 from zig-lang/none-pure-enums
Added better support for none pure enums in translate-c
Diffstat (limited to 'src/ast_render.cpp')
-rw-r--r--src/ast_render.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ast_render.cpp b/src/ast_render.cpp
index 2c3e1fc873..7f44cb7b65 100644
--- a/src/ast_render.cpp
+++ b/src/ast_render.cpp
@@ -728,7 +728,7 @@ static void render_node_extra(AstRender *ar, AstNode *node, bool grouped) {
render_node_grouped(ar, field_node->data.struct_field.type);
}
if (field_node->data.struct_field.value != nullptr) {
- fprintf(ar->f, "= ");
+ fprintf(ar->f, " = ");
render_node_grouped(ar, field_node->data.struct_field.value);
}
fprintf(ar->f, ",\n");