From 26325f0fd259e076f40409d7df4e14d645e8de18 Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Sat, 4 Dec 2021 00:30:47 +0100 Subject: [PATCH] Incorrect size of binop_preq_req array. --- src/compiler/sema_expr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/sema_expr.c b/src/compiler/sema_expr.c index 1086b8a77..c5468aec5 100644 --- a/src/compiler/sema_expr.c +++ b/src/compiler/sema_expr.c @@ -24,7 +24,7 @@ static inline void expr_set_as_const_list(Expr *expr, ConstInitializer *list) expr->const_expr.list = list; } -int BINOP_PREC_REQ[BINARYOP_LAST] = +int BINOP_PREC_REQ[BINARYOP_LAST + 1] = { // bitwise operations [BINARYOP_BIT_OR] = 1,