From fa66053e13c39e6f6a25db8f46b1e1f97ecce2fc Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 7 Mar 2024 12:15:38 -0500 Subject: Use '$' for min/max variable --- compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compile.c') diff --git a/compile.c b/compile.c index 0c7c050e..37d67af8 100644 --- a/compile.c +++ b/compile.c @@ -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); -- cgit v1.2.3