aboutsummaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-11 14:18:01 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-11 14:18:01 -0400
commit0b5bb32912cfc68c7783548006fca2dc5874eb93 (patch)
treedb5f28d83039ed6f78030f11d347c1c0d7b39664 /compile.c
parent273e2f995f1d74e9ef8e9a2e09a3ea2c2b16d839 (diff)
Fix optional bools
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index d3ca0ba6..a8ded474 100644
--- a/compile.c
+++ b/compile.c
@@ -222,7 +222,8 @@ CORD compile_type(type_t *t)
case OptionalType: {
type_t *nonnull = Match(t, OptionalType)->type;
switch (nonnull->tag) {
- case BoolType: case CStringType: case BigIntType: case NumType: case TextType:
+ case BoolType: return "OptionalBool_t";
+ case CStringType: case BigIntType: case NumType: case TextType:
case ArrayType: case SetType: case TableType: case FunctionType: case ClosureType:
case PointerType: case EnumType: case ChannelType:
return compile_type(nonnull);