diff options
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | src/compile/expressions.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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); |
