Aria

A low-level systems programming language
git clone git://git.m21c.me/Aria.git
Log | Files | Refs | README | LICENSE

commit 3953f61ce4dd99f1ce960770ef337a82ea7c497a
parent a7f863def1771a2b54c59f3fbacdeba1337e2971
Author: m21c <ho*******@gmail.com>
Date:   Tue, 23 Jun 2026 00:26:36 +0200

fix: codegen: map char for char-literals

Diffstat:
Mcompiler.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler.c b/compiler.c @@ -6509,7 +6509,7 @@ cgmapchar(CodeGen *cg, char ch) mapchar('\0', "\\0"); default: if (ch < 32 || (uint8_t) ch >= 127) - cgprintf(cg, '\\x%02x', (uint8_t) ch); + cgprintf(cg, "\\x%02x", (uint8_t) ch); else cgprintf(cg, "%c", ch); break;