src/ast_render.cpp: fix rendering of character literals <= 0x0f

This commit is contained in:
Nick Erdmann authored and Andrew Kelley committed 2019-06-04 13:00:41 -04:00
1 parent 291aaee977
commit d83b15febf
1 file changed
+1 -1
+1 -1
View File
@@ -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);
}
}
}