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/binops.c | |
| parent | fde2d5876236c9048ee1112be90c8af41c910149 (diff) | |
Code cleanup
Diffstat (limited to 'src/compile/binops.c')
| -rw-r--r-- | src/compile/binops.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/compile/binops.c b/src/compile/binops.c index acf1e031..89111a5f 100644 --- a/src/compile/binops.c +++ b/src/compile/binops.c @@ -228,8 +228,10 @@ Text_t compile_binary_op(env_t *env, ast_t *ast) { type_to_text(rhs_t), " values"); } case Concat: { - if (overall_t == PATH_TYPE) return Texts("Path$concat(", lhs, ", ", rhs, ")"); switch (overall_t->tag) { + case PathType: { + return Texts("Path$concat(", lhs, ", ", rhs, ")"); + } case TextType: { return Texts("Text$concat(", lhs, ", ", rhs, ")"); } |
