diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2026-02-19 23:58:49 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2026-02-19 23:58:49 -0500 |
| commit | b780cff8e43bb9834ecd44f33ae8d33bb8528d82 (patch) | |
| tree | 69067a393b73a29e2e811f782872c48532e987af /src/compile/expressions.c | |
| parent | fde2d5876236c9048ee1112be90c8af41c910149 (diff) | |
Code cleanup
Diffstat (limited to 'src/compile/expressions.c')
| -rw-r--r-- | src/compile/expressions.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/compile/expressions.c b/src/compile/expressions.c index c3918de3..3f5d24df 100644 --- a/src/compile/expressions.c +++ b/src/compile/expressions.c @@ -56,8 +56,6 @@ Text_t compile_empty(type_t *t) { if (t->tag == OptionalType) return compile_none(t); - if (t == PATH_TYPE) return Text("NONE_PATH"); - switch (t->tag) { case BigIntType: return Text("I(0)"); case IntType: { @@ -76,6 +74,7 @@ Text_t compile_empty(type_t *t) { case TableType: return Text("EMPTY_TABLE"); case TextType: return Text("EMPTY_TEXT"); case CStringType: return Text("\"\""); + case PathType: return Text("NONE_PATH"); case PointerType: { DeclareMatch(ptr, t, PointerType); Text_t empty_pointed = compile_empty(ptr->pointed); |
