diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-11 14:18:01 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-11 14:18:01 -0400 |
| commit | 0b5bb32912cfc68c7783548006fca2dc5874eb93 (patch) | |
| tree | db5f28d83039ed6f78030f11d347c1c0d7b39664 /compile.c | |
| parent | 273e2f995f1d74e9ef8e9a2e09a3ea2c2b16d839 (diff) | |
Fix optional bools
Diffstat (limited to 'compile.c')
| -rw-r--r-- | compile.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |
