diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-08-26 14:39:11 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-08-26 14:39:11 -0400 |
| commit | d25d5642392f93623d1eb4d11156d293fe6df546 (patch) | |
| tree | b14e5422d459a62ec086e06d23a81f93c478bd60 /src/compile | |
| parent | 4715487a4be9f03ad58cb3199e95573e262f6387 (diff) | |
Formatting for min/max and cleanup for ints/nums
Diffstat (limited to 'src/compile')
| -rw-r--r-- | src/compile/expressions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compile/expressions.c b/src/compile/expressions.c index 2320474a..58288c50 100644 --- a/src/compile/expressions.c +++ b/src/compile/expressions.c @@ -152,7 +152,7 @@ Text_t compile(env_t *env, ast_t *ast) { ast_t *key = ast->tag == Min ? Match(ast, Min)->key : Match(ast, Max)->key; ast_t *lhs = ast->tag == Min ? Match(ast, Min)->lhs : Match(ast, Max)->lhs; ast_t *rhs = ast->tag == Min ? Match(ast, Min)->rhs : Match(ast, Max)->rhs; - const char *key_name = "$"; + const char *key_name = ast->tag == Min ? "_min_" : "_max_"; if (key == NULL) key = FakeAST(Var, key_name); env_t *expr_env = fresh_scope(env); |
