aboutsummaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-02-12 00:41:49 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-02-12 00:41:49 -0500
commit2c5401aaf731bba58d0db419594068ac24eda143 (patch)
treea5eccd94ad7bd0b1a48f7005fe50356d0f261f6f /compile.c
parent0f1913353408f46494741b05737d88156b81b7c4 (diff)
Deprecate Char type
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index 7c3871c1..3cbd5a5a 100644
--- a/compile.c
+++ b/compile.c
@@ -35,7 +35,6 @@ CORD compile(ast_t *ast)
case Var: return Match(ast, Var)->name;
case Int: return CORD_asprintf("((Int%ld_t)%ld)", Match(ast, Int)->precision, Match(ast, Int)->i);
case Num: return CORD_asprintf(Match(ast, Num)->precision == 64 ? "%g" : "%gf", Match(ast, Num)->n);
- case Char: return CORD_asprintf("(char)'\\x%02X'", (int)Match(ast, Char)->c);
case UnaryOp: {
auto unop = Match(ast, UnaryOp);
CORD expr = compile(unop->value);