mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
src/ast_render.cpp: fix rendering of character literals <= 0x0f
This commit is contained in:
parent
291aaee977
commit
d83b15febf
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user