From d9ea953b5c334064bbee29c9659b18fddfb89062 Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Tue, 25 Oct 2022 10:50:56 +0200 Subject: [PATCH] Fix $c >>= 2 --- src/compiler/sema_expr.c | 5 ++++- src/version.h | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/compiler/sema_expr.c b/src/compiler/sema_expr.c index edf51b299..46e06aa51 100644 --- a/src/compiler/sema_expr.c +++ b/src/compiler/sema_expr.c @@ -4780,7 +4780,10 @@ static bool sema_expr_analyse_shift(SemaContext *context, Expr *expr, Expr *left */ static bool sema_expr_analyse_shift_assign(SemaContext *context, Expr *expr, Expr *left, Expr *right) { - + if (left->expr_kind == EXPR_CT_IDENT) + { + return sema_binary_analyse_ct_common_assign(context, expr, left); + } // 1. Analyze the two sub lhs & rhs *without coercion* if (!sema_binary_analyse_subexpr(context, expr, left, right)) return false; diff --git a/src/version.h b/src/version.h index 5977f700d..4064bfd1b 100644 --- a/src/version.h +++ b/src/version.h @@ -1 +1 @@ -#define COMPILER_VERSION "0.3.97" \ No newline at end of file +#define COMPILER_VERSION "0.3.98" \ No newline at end of file