aboutsummaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-02-12 03:00:31 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-02-12 03:00:31 -0500
commitf3b9d577c2a64e8a81f7d1c75c1eb560b1940f62 (patch)
treec0a9ee0cc6b12894bbeab6be3cb6acfafa0c9ab7 /compile.c
parent6bc9e78aef0a67cde9831806198e79c73b6acad4 (diff)
Misc fixes for __stack, yes, no, etc
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index 3170369d..1f036c25 100644
--- a/compile.c
+++ b/compile.c
@@ -31,7 +31,7 @@ CORD compile(ast_t *ast)
{
switch (ast->tag) {
case Nil: return CORD_asprintf("(%r)NULL", compile_type(Match(ast, Nil)->type));
- case Bool: return Match(ast, Bool)->b ? "true" : "false";
+ case Bool: return Match(ast, Bool)->b ? "yes" : "no";
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);