Correct rendering of AST Char literals

This commit is contained in:
LemonBoy 2019-04-20 11:29:10 +02:00
parent 8d05330cf7
commit 9ea600b634

View File

@ -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;
}