Skip to content

Commit

Permalink
src/ast_render.cpp: fix rendering of character literals <= 0x0f
Browse files Browse the repository at this point in the history
  • Loading branch information
nrdmn authored and andrewrk committed Jun 4, 2019
1 parent 291aaee commit d83b15f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ast_render.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ static void string_literal_escape(Buf *source, Buf *dest) {
} else if (is_printable(c)) {
buf_append_char(dest, c);
} else {
buf_appendf(dest, "\\x%x", (int)c);
buf_appendf(dest, "\\x%02x", (int)c);
}
}
}
Expand Down

0 comments on commit d83b15f

Please sign in to comment.