mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
Correct rendering of AST Char literals
This commit is contained in:
parent
8d05330cf7
commit
9ea600b634
@ -633,7 +633,7 @@ static void render_node_extra(AstRender *ar, AstNode *node, bool grouped) {
|
||||
if (is_printable(c)) {
|
||||
fprintf(ar->f, "'%c'", c);
|
||||
} else {
|
||||
fprintf(ar->f, "'\\x%x'", (int)c);
|
||||
fprintf(ar->f, "'\\x%02x'", (int)c);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user