zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit d83b15febf00518e201160f8b089c0d846d18e4c (tree)
parent 291aaee97773e2f9c40e061410db52ca00f4d651
Author: Nick Erdmann <n@nirf.de>
Date:   Sun,  2 Jun 2019 17:27:09 +0200

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

Diffstat:
Msrc/ast_render.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ast_render.cpp b/src/ast_render.cpp @@ -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); } } }