diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-03-07 12:15:38 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-03-07 12:15:38 -0500 |
| commit | fa66053e13c39e6f6a25db8f46b1e1f97ecce2fc (patch) | |
| tree | 18148dcfa81cac8f156c4fbedbda7edf97c6585c /compile.c | |
| parent | 98d86d1934cfe379c8dec758d843571bcb0f8486 (diff) | |
Use '$' for min/max variable
Diffstat (limited to 'compile.c')
| -rw-r--r-- | compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -523,7 +523,7 @@ CORD 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 = ast->tag == Min ? "_min_" : "_max_"; + const char *key_name = "$"; if (key == NULL) key = FakeAST(Var, key_name); env_t *expr_env = fresh_scope(env); |
