aboutsummaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-05 15:43:52 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-05 15:43:52 -0400
commitd99f0271ad184e67c3215a63c786f05a218c1c1e (patch)
tree30de73eb3dd320e8dc8bf95ef752694f3aa1011b /compile.c
parent9f8abd5cd1a519acc8259f1a3be058c0767b7129 (diff)
Revert "Use stack() macro" (actually needs to work this way)
This reverts commit ed36765b4239d7af89a06773ad4ff1154d5344be.
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 7902fa7e..125db5a5 100644
--- a/compile.c
+++ b/compile.c
@@ -1253,7 +1253,7 @@ CORD expr_as_text(env_t *env, CORD expr, type_t *t, CORD color)
{
switch (t->tag) {
case MemoryType: return CORD_asprintf("Memory$as_text(stack(%r), %r, &Memory$info)", expr, color);
- case BoolType: return CORD_asprintf("Bool$as_text(stack(%r), %r, &Bool$info)", expr, color);
+ case BoolType: return CORD_asprintf("Bool$as_text((Bool_t[1]){%r}, %r, &Bool$info)", expr, color);
case CStringType: return CORD_asprintf("CString$as_text(stack(%r), %r, &CString$info)", expr, color);
case BigIntType: case IntType: {
CORD name = type_to_cord(t);