aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-08-24 19:52:41 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-08-24 19:52:41 -0400
commitbb1af5c7b5e76ddd3e76ff75e62c0f0a65026ded (patch)
treee3e5e77f376601059988fffe4e9c55240e5d103f
parentcfe1bd5cb72a12f3bfc643f64b33444ad63502f9 (diff)
Refactoring bug fix
-rw-r--r--Makefile2
-rw-r--r--src/compile/expressions.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 2ae7e9f3..d7fc4663 100644
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,7 @@ else
include config.mk
-CC=cc
+CC=$(DEFAULT_C_COMPILER)
CCONFIG=-std=c2x -fPIC \
-fno-signed-zeros -fno-finite-math-only -fno-trapping-math \
-fvisibility=hidden -fdollars-in-identifiers \
diff --git a/src/compile/expressions.c b/src/compile/expressions.c
index 4d41af61..2320474a 100644
--- a/src/compile/expressions.c
+++ b/src/compile/expressions.c
@@ -230,7 +230,7 @@ Text_t compile(env_t *env, ast_t *ast) {
case ExplicitlyTyped: {
return compile_to_type(env, Match(ast, ExplicitlyTyped)->ast, get_type(env, ast));
}
- case When: return compile_when_statement(env, ast);
+ case When: return compile_when_expression(env, ast);
case If: return compile_if_expression(env, ast);
case Reduction: return compile_reduction(env, ast);
case FieldAccess: return compile_field_access(env, ast);